We are using a simple git flow based on git flow and github flow. We have two branches develop and master.
develop is a representation of staging
master is a representation of production
| # frozen_string_literal: true | |
| source 'https://rubygems.org' | |
| git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
| ruby '3.1.2' | |
| gem 'rails', '~> 7.0.3', '>= 7.0.3.1' | |
| gem 'active_type', '~> 2.2' # FUI https://github.com/makandra/active_type | |
| gem 'bcrypt', '~> 3.1' |
| # frozen_string_literal: true | |
| # Broadcasts functions | |
| module Meeting::Broadcasts # rubocop:disable Style/ClassAndModuleChildren | |
| def broadcast_to_replace_customer_text | |
| broadcast_replace_to self, :customer_text, | |
| target: 'customer_text', | |
| partial: 'meetings/customer_text', | |
| locals: { customer_text: customer_text } | |
| end |
| # frozen_string_literal: true | |
| # It take current open meetings and change state for other | |
| # to achenved | |
| class ChimeFinishMeetingsService | |
| def self.call | |
| new.call | |
| end | |
| def call |
| # frozen_string_literal: true | |
| require 'test_helper' | |
| class RufusTest < ActionDispatch::IntegrationTest | |
| test 'rufus loading' do | |
| assert_predicate self, :rufus? | |
| end |
| # config/database.yml.example here because config/database.yml is not in source control and sometimes gets removed when switching between branches | |
| # so this example file is here in case a new config/database.yml file needs to be created | |
| # | |
| default: &default | |
| adapter: postgresql | |
| database: dev | |
| # host: localhost | |
| # For details on connection pooling, see rails configuration guide | |
| # http://guides.rubyonrails.org/configuring.html#database-pooling |
| web: bundle exec rails server -p $PORT | |
| sphinxstart: rake ts:run_in_foreground |
| source src1 | |
| { | |
| type = mysql | |
| sql_host = 172.17.42.1 | |
| sql_user = admin | |
| sql_pass = | |
| sql_db = testing | |
| sql_port = 3309 | |
| sql_query = select * from test |
| ApplySyntax.sublime-package | |
| Better CoffeeScript.sublime-package | |
| Better RSpec.sublime-package | |
| BracketHighlighter.sublime-package | |
| ChangeQuotes.sublime-package | |
| Color Highlighter.sublime-package | |
| DocBlockr.sublime-package | |
| GitHub Flavored Markdown Preview.sublime-package | |
| Package Control.sublime-package | |
| Package Syncing.sublime-package |
| module Services | |
| class UserContactsImport | |
| attr_reader :unparsed_phones | |
| def initialize(user, contacts_list, rewrite) | |
| @user = user | |
| @contact_phones = flat_and_remove_self(contacts_list) | |
| @rewrite = rewrite | |
| @unparsed_phones = [] | |
| end |