who_am_i 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55880585cfea925d0d39e6e92d909fbaa8a16344
4
- data.tar.gz: 5fd295e65e97840d2f053402b778cad610543a22
3
+ metadata.gz: cd78ba2e07002c41c67d3d85128e49b1bcd40b1b
4
+ data.tar.gz: 4998e54c08a6a47deed886df900ca7f6d84b3a36
5
5
  SHA512:
6
- metadata.gz: 4d85064a47d41c6e03597ccc893bcfb5860f88a027a0c95051acb665b6a9a0fc41d6b5db037b666e8cfd1b3fce1746abe73eaa2cdca12e2cd8eda34643cd4035
7
- data.tar.gz: 8c242e8b3ce144068ca7cbb9c80103fde3597731936702cca4ae3382a2898f73784baee06afd40d083910bbc57c52eacbfdb1ae12827ec535659c58aa6317331
6
+ metadata.gz: df44e63b4e02bf2196a61304eb0a4e93dce311df8ce4e5784582cfe17309a10bdbf0e1a07995b29edd94c90a6af5175e4a28cca97716a88f2d23f83780857a66
7
+ data.tar.gz: 1dee087a0dfb42f29f514e9d9c10c407ce13439b7396bff1a8f9d828d0112b7c38e06c825663b0912c9139fc8bbda4825fa27d170298c041b72df6ce6609d7e6
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /gemfiles/*.lock
data/.travis.yml CHANGED
@@ -1,5 +1,29 @@
1
1
  sudo: false
2
+ cache: bundler
2
3
  language: ruby
4
+ before_install: gem install bundler -v 1.16.1
3
5
  rvm:
4
- - 2.4.0
5
- before_install: gem install bundler -v 1.15.1
6
+ - 2.3
7
+ - 2.4
8
+ - ruby-head
9
+ gemfile:
10
+ - gemfiles/rails50.gemfile
11
+ - gemfiles/rails51.gemfile
12
+ script: bundle exec rake test
13
+ matrix:
14
+ fast_finish: true
15
+ allow_failures:
16
+ - rvm: ruby-head
17
+ include:
18
+ - rvm: 2.1
19
+ gemfile: gemfiles/rails32.gemfile
20
+ - rvm: 2.2
21
+ gemfile: gemfiles/rails40.gemfile
22
+ - rvm: 2.2
23
+ gemfile: gemfiles/rails41.gemfile
24
+ - rvm: 2.2
25
+ gemfile: gemfiles/rails42.gemfile
26
+ - rvm: 2.3
27
+ gemfile: gemfiles/rails42.gemfile
28
+ - rvm: 2.4
29
+ gemfile: gemfiles/rails42.gemfile
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # WhoAmI
2
2
 
3
+ [![Build Status](https://travis-ci.org/zachahn/who_am_i.svg?branch=master)](https://travis-ci.org/zachahn/who_am_i)
4
+
3
5
  > Who am I? &mdash; <cite>Hansel</cite>
4
6
 
5
7
  > Who am I? &mdash; <cite>Katy Perry</cite>
@@ -29,7 +31,15 @@ And then execute:
29
31
 
30
32
  $ bundle
31
33
 
32
- In your `Rakefile`, require `who_am_i/rake`.
34
+ In your `Rakefile`:
35
+
36
+ ```ruby
37
+ require "who_am_i/rake"
38
+
39
+ # ...
40
+ # after `Rails.application.load_tasks`
41
+ WhoAmI.load_rake_tasks
42
+ ```
33
43
 
34
44
 
35
45
  ## Usage
data/lib/who_am_i.rb CHANGED
@@ -3,6 +3,7 @@ require "proc_party"
3
3
  require "set"
4
4
 
5
5
  require "who_am_i/refinement/yield_self"
6
+ require "who_am_i/refinement/hash_dig"
6
7
 
7
8
  require "who_am_i/extracted_class"
8
9
  require "who_am_i/comment"
@@ -12,12 +13,15 @@ require "who_am_i/version"
12
13
  require "who_am_i/walker"
13
14
  require "who_am_i/text_table"
14
15
  require "who_am_i/error"
16
+ require "who_am_i/config"
15
17
 
16
18
  require "who_am_i/function/remove_annotation"
17
19
  require "who_am_i/function/main"
18
20
  require "who_am_i/function/load_config"
21
+ require "who_am_i/function/setup_environment"
22
+ require "who_am_i/function/connect_to_database"
23
+ require "who_am_i/function/load_initializers"
19
24
  require "who_am_i/function/get_tables"
20
- require "who_am_i/function/load_inflections"
21
25
  require "who_am_i/function/annotate_models"
22
26
  require "who_am_i/function/ls"
23
27
  require "who_am_i/function/parse_model"
@@ -0,0 +1,88 @@
1
+ module WhoAmI
2
+ class Config
3
+ using Refinement::HashDig
4
+
5
+ def initialize(config)
6
+ @internal = config
7
+ @defaults = {
8
+ autorun_enabled: true,
9
+ autorun_after_tasks: [
10
+ "db:migrate",
11
+ ],
12
+ load_environment_enabled: true,
13
+ load_environment_approach: :rake,
14
+ load_environment_rake_task: "environment",
15
+ load_environment_manual_database: "",
16
+ load_environment_manual_initializers: [
17
+ "config/initializers/inflections.rb",
18
+ ],
19
+ annotate_models_enabled: true,
20
+ annotate_models_paths: [
21
+ "app/models/**/*.rb",
22
+ ],
23
+ }
24
+ end
25
+
26
+ def autorun_enabled?
27
+ enabled = @internal.dig(:autorun, :enabled)
28
+
29
+ if enabled.nil?
30
+ @defaults[:autorun_enabled]
31
+ else
32
+ !!enabled
33
+ end
34
+ end
35
+
36
+ def autorun_after_tasks
37
+ @internal.dig(:autorun, :rake) || @defaults[:autorun_after_tasks]
38
+ end
39
+
40
+ def load_environment?
41
+ @internal.dig(:environment, :enabled)
42
+
43
+ if enabled.nil?
44
+ @defaults[:load_environment_enabled]
45
+ else
46
+ !!enabled
47
+ end
48
+ end
49
+
50
+ def load_environment_approach
51
+ approach =
52
+ @internal.dig(:environment, :approach) ||
53
+ @defaults[:load_environment_approach]
54
+
55
+ approach.to_sym
56
+ end
57
+
58
+ def load_environment_rake_task
59
+ @internal.dig(:environment, :rake, :task) ||
60
+ @defaults[:load_environment_rake_task]
61
+ end
62
+
63
+ def load_environment_manual_database
64
+ @internal.dig(:environment, :manual, :database) ||
65
+ @defaults[:load_environment_manual_database]
66
+ end
67
+
68
+ def load_environment_manual_initializers
69
+ @internal.dig(:environment, :manual, :initializers) ||
70
+ @defaults[:load_environment_manual_initializers]
71
+ end
72
+
73
+ def annotate_models?
74
+ enabled = @internal.dig(:annotate, :models, :enabled)
75
+
76
+ if enabled.nil?
77
+ @defaults[:annotate_models_enabled]
78
+ else
79
+ !!enabled
80
+ end
81
+ end
82
+
83
+ def annotate_models_paths
84
+ @internal.dig(:annotate, :models, :paths) ||
85
+ @defaults[:annotate_models_paths]
86
+ end
87
+ end
88
+ end
@@ -27,11 +27,7 @@ module WhoAmI
27
27
  private
28
28
 
29
29
  def paths
30
- if @config.nil?
31
- []
32
- else
33
- @config[:paths]
34
- end
30
+ @config.annotate_models_paths
35
31
  end
36
32
  end
37
33
  end
@@ -3,12 +3,10 @@ module WhoAmI
3
3
  class ComputeContent
4
4
  include ProcParty
5
5
 
6
- PATTERN = %r{\A(?:(?:^#.*?$)\n)*\n*(.*)}m
7
-
8
6
  def call(extracted_class)
9
7
  original_content = File.read(extracted_class.model_filepath)
10
- content = PATTERN.match(original_content)
11
- extracted_class.computed_content = content
8
+ bare_content = RemoveAnnotation.new.call(original_content)
9
+ extracted_class.computed_content = bare_content
12
10
  end
13
11
  end
14
12
  end
@@ -0,0 +1,26 @@
1
+ module WhoAmI
2
+ module Function
3
+ class ConnectToDatabase
4
+ include ProcParty
5
+
6
+ def initialize(config, root)
7
+ @config = config
8
+ @root = root
9
+ end
10
+
11
+ def call
12
+ if ActiveRecord::Base.connected?
13
+ return
14
+ end
15
+
16
+ require "erb"
17
+
18
+ config_path = config.load_environment_manual_database
19
+
20
+ db_config = YAML.load(ERB.new(File.read(config_path)).result)
21
+
22
+ ActiveRecord::Base.establish_connection(db_config["development"])
23
+ end
24
+ end
25
+ end
26
+ end
@@ -8,29 +8,24 @@ module WhoAmI
8
8
  end
9
9
 
10
10
  def call
11
- hash = YAML.load_file(config_path)
12
- deep_symbolize_hash(hash)
11
+ Config.new(loaded_configuration)
13
12
  end
14
13
 
15
14
  private
16
15
 
17
- def config_path
18
- @config_path ||=
19
- if File.exist?(dotfile_path)
20
- dotfile_path
21
- elsif File.exist?(initializer_path)
22
- initializer_path
16
+ def loaded_configuration
17
+ @loaded_configuration ||=
18
+ if File.exist?(initializer_path)
19
+ contents = YAML.load_file(initializer_path)
20
+ deep_symbolize_hash(contents)
23
21
  else
24
- raise WhoAmI::Error, "Configuration not found"
22
+ warn "WhoAmI configuration not found, using default"
23
+ {}
25
24
  end
26
25
  end
27
26
 
28
- def dotfile_path
29
- File.join(@root, ".who_am_i.yml")
30
- end
31
-
32
27
  def initializer_path
33
- File.join(@root, "config", "initializers", "who_am_i.yml")
28
+ File.join(@root, "config", "who_am_i.yml")
34
29
  end
35
30
 
36
31
  def deep_symbolize_hash(obj)
@@ -0,0 +1,24 @@
1
+ module WhoAmI
2
+ module Function
3
+ class LoadInitializers
4
+ include ProcParty
5
+
6
+ def initialize(config, root)
7
+ @config = config
8
+ @root = root
9
+ end
10
+
11
+ def call
12
+ paths = @config.load_environment_manual_initializers
13
+
14
+ paths.each do |path|
15
+ abspath = File.expand_path(path, @root)
16
+
17
+ if File.exist?(abspath)
18
+ load abspath
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -7,10 +7,10 @@ module WhoAmI
7
7
 
8
8
  def call
9
9
  config = LoadConfig.new(@root).call
10
+ SetupEnvironment.new(config, @root).call
10
11
  tables = GetTables.new.call
11
- LoadInflections.new.call
12
12
 
13
- AnnotateModels.new(config[:enabled][:models], tables).call
13
+ AnnotateModels.new(config, tables).call
14
14
  end
15
15
  end
16
16
  end
@@ -1,7 +1,7 @@
1
1
  module WhoAmI
2
2
  module Function
3
3
  class RemoveAnnotation
4
- def call(file_contents:)
4
+ def call(file_contents)
5
5
  if file_contents !~ /\A# == Schema Info/
6
6
  return file_contents
7
7
  end
@@ -0,0 +1,29 @@
1
+ module WhoAmI
2
+ module Function
3
+ class SetupEnvironment
4
+ include ProcParty
5
+
6
+ def initialize(config, root)
7
+ @config = config
8
+ @root = root
9
+ end
10
+
11
+ def call
12
+ approach = @config.load_environment_approach
13
+
14
+ if approach == :rake
15
+ rake(@config.load_environment_rake_task)
16
+ elsif approach == :manual
17
+ ConnectToDatabase.new(@config, @root).call
18
+ LoadInitializers.new(@config, @root).call
19
+ end
20
+ end
21
+
22
+ private
23
+
24
+ def rake(task_name)
25
+ Rake::Task[task_name].invoke
26
+ end
27
+ end
28
+ end
29
+ end
data/lib/who_am_i/rake.rb CHANGED
@@ -1,12 +1,6 @@
1
- namespace :who_am_i do
2
- desc "Annotate models"
3
- task :main do
1
+ module WhoAmI
2
+ def self.load_rake_tasks
4
3
  require "who_am_i"
5
-
6
- main = WhoAmI::Function::Main.new(File.expand_path("."))
7
- main.call
4
+ load(File.expand_path("tasks.rake", __dir__))
8
5
  end
9
6
  end
10
-
11
- desc "Annotate"
12
- task who_am_i: "who_am_i:main"
@@ -0,0 +1,17 @@
1
+ module WhoAmI
2
+ module Refinement
3
+ module HashDig
4
+ refine Hash do
5
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.3.0")
6
+ def dig(head, *tail)
7
+ if tail.empty? || !self.key?(head)
8
+ self[head]
9
+ else
10
+ self[head].dig(*tail)
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,20 @@
1
+ namespace :who_am_i do
2
+ desc "Annotate models"
3
+ task :main do
4
+ main = WhoAmI::Function::Main.new(File.expand_path("."))
5
+ main.call
6
+ end
7
+ end
8
+
9
+ desc "Annotate"
10
+ task who_am_i: "who_am_i:main"
11
+
12
+ config = WhoAmI::Function::LoadConfig.new(File.expand_path(".")).call
13
+
14
+ if config.autorun_enabled?
15
+ config.autorun_after_tasks.each do |task_name|
16
+ Rake::Task[task_name].enhance do
17
+ Rake::Task["who_am_i:main"].invoke
18
+ end
19
+ end
20
+ end
@@ -1,3 +1,3 @@
1
1
  module WhoAmI
2
- VERSION = "0.0.2".freeze
2
+ VERSION = "0.0.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: who_am_i
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Ahn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-04 00:00:00.000000000 Z
11
+ date: 2018-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -221,28 +221,24 @@ files:
221
221
  - bin/rubocop
222
222
  - bin/setup
223
223
  - gemfiles/rails32.gemfile
224
- - gemfiles/rails32.gemfile.lock
225
224
  - gemfiles/rails40.gemfile
226
- - gemfiles/rails40.gemfile.lock
227
225
  - gemfiles/rails41.gemfile
228
- - gemfiles/rails41.gemfile.lock
229
226
  - gemfiles/rails42.gemfile
230
- - gemfiles/rails42.gemfile.lock
231
227
  - gemfiles/rails50.gemfile
232
- - gemfiles/rails50.gemfile.lock
233
228
  - gemfiles/rails51.gemfile
234
- - gemfiles/rails51.gemfile.lock
235
229
  - lib/who_am_i.rb
236
230
  - lib/who_am_i/comment.rb
231
+ - lib/who_am_i/config.rb
237
232
  - lib/who_am_i/error.rb
238
233
  - lib/who_am_i/extracted_class.rb
239
234
  - lib/who_am_i/function/annotate_models.rb
240
235
  - lib/who_am_i/function/compute_comment.rb
241
236
  - lib/who_am_i/function/compute_content.rb
237
+ - lib/who_am_i/function/connect_to_database.rb
242
238
  - lib/who_am_i/function/extract_model_data.rb
243
239
  - lib/who_am_i/function/get_tables.rb
244
240
  - lib/who_am_i/function/load_config.rb
245
- - lib/who_am_i/function/load_inflections.rb
241
+ - lib/who_am_i/function/load_initializers.rb
246
242
  - lib/who_am_i/function/ls.rb
247
243
  - lib/who_am_i/function/main.rb
248
244
  - lib/who_am_i/function/parse_model.rb
@@ -250,11 +246,14 @@ files:
250
246
  - lib/who_am_i/function/resolve_active_record.rb
251
247
  - lib/who_am_i/function/resolve_class_relationships.rb
252
248
  - lib/who_am_i/function/resolve_table.rb
249
+ - lib/who_am_i/function/setup_environment.rb
253
250
  - lib/who_am_i/function/write_model.rb
254
251
  - lib/who_am_i/rake.rb
252
+ - lib/who_am_i/refinement/hash_dig.rb
255
253
  - lib/who_am_i/refinement/yield_self.rb
256
254
  - lib/who_am_i/table_column_info.rb
257
255
  - lib/who_am_i/table_info.rb
256
+ - lib/who_am_i/tasks.rake
258
257
  - lib/who_am_i/text_table.rb
259
258
  - lib/who_am_i/version.rb
260
259
  - lib/who_am_i/walker.rb
@@ -1,89 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- who_am_i (0.0.2)
5
- activerecord (>= 3.2, < 5.2)
6
- parser
7
- proc_party
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- activemodel (3.2.22)
13
- activesupport (= 3.2.22)
14
- builder (~> 3.0.0)
15
- activerecord (3.2.22)
16
- activemodel (= 3.2.22)
17
- activesupport (= 3.2.22)
18
- arel (~> 3.0.2)
19
- tzinfo (~> 0.3.29)
20
- activesupport (3.2.22)
21
- i18n (~> 0.6, >= 0.6.4)
22
- multi_json (~> 1.0)
23
- appraisal (2.2.0)
24
- bundler
25
- rake
26
- thor (>= 0.14.0)
27
- arel (3.0.3)
28
- ast (2.3.0)
29
- builder (3.0.4)
30
- byebug (9.0.6)
31
- coderay (1.1.1)
32
- foreigner (1.7.4)
33
- activerecord (>= 3.0.0)
34
- i18n (0.8.6)
35
- m (1.5.1)
36
- method_source (>= 0.6.7)
37
- rake (>= 0.9.2.2)
38
- method_source (0.8.2)
39
- minitest (5.10.2)
40
- multi_json (1.12.1)
41
- parallel (1.11.2)
42
- parser (2.4.0.0)
43
- ast (~> 2.2)
44
- powerpack (0.1.1)
45
- proc_party (0.2.0)
46
- pry (0.10.4)
47
- coderay (~> 1.1.0)
48
- method_source (~> 0.8.1)
49
- slop (~> 3.4)
50
- pry-byebug (3.4.2)
51
- byebug (~> 9.0)
52
- pry (~> 0.10)
53
- rainbow (2.2.2)
54
- rake
55
- rake (10.5.0)
56
- rubocop (0.49.1)
57
- parallel (~> 1.10)
58
- parser (>= 2.3.3.1, < 3.0)
59
- powerpack (~> 0.1)
60
- rainbow (>= 1.99.1, < 3.0)
61
- ruby-progressbar (~> 1.7)
62
- unicode-display_width (~> 1.0, >= 1.0.1)
63
- ruby-progressbar (1.8.1)
64
- slop (3.6.0)
65
- sqlite3 (1.3.13)
66
- the_bath_of_zahn (0.0.2)
67
- thor (0.19.4)
68
- tzinfo (0.3.53)
69
- unicode-display_width (1.3.0)
70
-
71
- PLATFORMS
72
- ruby
73
-
74
- DEPENDENCIES
75
- activerecord (= 3.2.22)
76
- appraisal
77
- bundler (~> 1.15)
78
- foreigner
79
- m (~> 1.5)
80
- minitest (~> 5.10)
81
- pry-byebug
82
- rake (~> 10.0)
83
- rubocop
84
- sqlite3
85
- the_bath_of_zahn
86
- who_am_i!
87
-
88
- BUNDLED WITH
89
- 1.15.4
@@ -1,94 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- who_am_i (0.0.2)
5
- activerecord (>= 3.2, < 5.2)
6
- parser
7
- proc_party
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- activemodel (4.0.13)
13
- activesupport (= 4.0.13)
14
- builder (~> 3.1.0)
15
- activerecord (4.0.13)
16
- activemodel (= 4.0.13)
17
- activerecord-deprecated_finders (~> 1.0.2)
18
- activesupport (= 4.0.13)
19
- arel (~> 4.0.0)
20
- activerecord-deprecated_finders (1.0.4)
21
- activesupport (4.0.13)
22
- i18n (~> 0.6, >= 0.6.9)
23
- minitest (~> 4.2)
24
- multi_json (~> 1.3)
25
- thread_safe (~> 0.1)
26
- tzinfo (~> 0.3.37)
27
- appraisal (2.2.0)
28
- bundler
29
- rake
30
- thor (>= 0.14.0)
31
- arel (4.0.2)
32
- ast (2.3.0)
33
- builder (3.1.4)
34
- byebug (9.0.6)
35
- coderay (1.1.1)
36
- foreigner (1.7.4)
37
- activerecord (>= 3.0.0)
38
- i18n (0.8.6)
39
- m (1.5.1)
40
- method_source (>= 0.6.7)
41
- rake (>= 0.9.2.2)
42
- method_source (0.8.2)
43
- minitest (4.7.5)
44
- multi_json (1.12.1)
45
- parallel (1.11.2)
46
- parser (2.4.0.0)
47
- ast (~> 2.2)
48
- powerpack (0.1.1)
49
- proc_party (0.2.0)
50
- pry (0.10.4)
51
- coderay (~> 1.1.0)
52
- method_source (~> 0.8.1)
53
- slop (~> 3.4)
54
- pry-byebug (3.4.2)
55
- byebug (~> 9.0)
56
- pry (~> 0.10)
57
- rainbow (2.2.2)
58
- rake
59
- rake (10.5.0)
60
- rubocop (0.49.1)
61
- parallel (~> 1.10)
62
- parser (>= 2.3.3.1, < 3.0)
63
- powerpack (~> 0.1)
64
- rainbow (>= 1.99.1, < 3.0)
65
- ruby-progressbar (~> 1.7)
66
- unicode-display_width (~> 1.0, >= 1.0.1)
67
- ruby-progressbar (1.8.1)
68
- slop (3.6.0)
69
- sqlite3 (1.3.13)
70
- the_bath_of_zahn (0.0.2)
71
- thor (0.19.4)
72
- thread_safe (0.3.6)
73
- tzinfo (0.3.53)
74
- unicode-display_width (1.3.0)
75
-
76
- PLATFORMS
77
- ruby
78
-
79
- DEPENDENCIES
80
- activerecord (= 4.0.13)
81
- appraisal
82
- bundler (~> 1.15)
83
- foreigner
84
- m (~> 1.5)
85
- minitest (~> 4.7)
86
- pry-byebug
87
- rake (~> 10.0)
88
- rubocop
89
- sqlite3
90
- the_bath_of_zahn
91
- who_am_i!
92
-
93
- BUNDLED WITH
94
- 1.15.4
@@ -1,93 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- who_am_i (0.0.2)
5
- activerecord (>= 3.2, < 5.2)
6
- parser
7
- proc_party
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- activemodel (4.1.16)
13
- activesupport (= 4.1.16)
14
- builder (~> 3.1)
15
- activerecord (4.1.16)
16
- activemodel (= 4.1.16)
17
- activesupport (= 4.1.16)
18
- arel (~> 5.0.0)
19
- activesupport (4.1.16)
20
- i18n (~> 0.6, >= 0.6.9)
21
- json (~> 1.7, >= 1.7.7)
22
- minitest (~> 5.1)
23
- thread_safe (~> 0.1)
24
- tzinfo (~> 1.1)
25
- appraisal (2.2.0)
26
- bundler
27
- rake
28
- thor (>= 0.14.0)
29
- arel (5.0.1.20140414130214)
30
- ast (2.3.0)
31
- builder (3.2.3)
32
- byebug (9.0.6)
33
- coderay (1.1.1)
34
- foreigner (1.7.4)
35
- activerecord (>= 3.0.0)
36
- i18n (0.8.6)
37
- json (1.8.6)
38
- m (1.5.1)
39
- method_source (>= 0.6.7)
40
- rake (>= 0.9.2.2)
41
- method_source (0.8.2)
42
- minitest (5.10.2)
43
- parallel (1.11.2)
44
- parser (2.4.0.0)
45
- ast (~> 2.2)
46
- powerpack (0.1.1)
47
- proc_party (0.2.0)
48
- pry (0.10.4)
49
- coderay (~> 1.1.0)
50
- method_source (~> 0.8.1)
51
- slop (~> 3.4)
52
- pry-byebug (3.4.2)
53
- byebug (~> 9.0)
54
- pry (~> 0.10)
55
- rainbow (2.2.2)
56
- rake
57
- rake (10.5.0)
58
- rubocop (0.49.1)
59
- parallel (~> 1.10)
60
- parser (>= 2.3.3.1, < 3.0)
61
- powerpack (~> 0.1)
62
- rainbow (>= 1.99.1, < 3.0)
63
- ruby-progressbar (~> 1.7)
64
- unicode-display_width (~> 1.0, >= 1.0.1)
65
- ruby-progressbar (1.8.1)
66
- slop (3.6.0)
67
- sqlite3 (1.3.13)
68
- the_bath_of_zahn (0.0.2)
69
- thor (0.19.4)
70
- thread_safe (0.3.6)
71
- tzinfo (1.2.3)
72
- thread_safe (~> 0.1)
73
- unicode-display_width (1.3.0)
74
-
75
- PLATFORMS
76
- ruby
77
-
78
- DEPENDENCIES
79
- activerecord (= 4.1.16)
80
- appraisal
81
- bundler (~> 1.15)
82
- foreigner
83
- m (~> 1.5)
84
- minitest (~> 5.10)
85
- pry-byebug
86
- rake (~> 10.0)
87
- rubocop
88
- sqlite3
89
- the_bath_of_zahn
90
- who_am_i!
91
-
92
- BUNDLED WITH
93
- 1.15.4
@@ -1,91 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- who_am_i (0.0.2)
5
- activerecord (>= 3.2, < 5.2)
6
- parser
7
- proc_party
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- activemodel (4.2.9)
13
- activesupport (= 4.2.9)
14
- builder (~> 3.1)
15
- activerecord (4.2.9)
16
- activemodel (= 4.2.9)
17
- activesupport (= 4.2.9)
18
- arel (~> 6.0)
19
- activesupport (4.2.9)
20
- i18n (~> 0.7)
21
- minitest (~> 5.1)
22
- thread_safe (~> 0.3, >= 0.3.4)
23
- tzinfo (~> 1.1)
24
- appraisal (2.2.0)
25
- bundler
26
- rake
27
- thor (>= 0.14.0)
28
- arel (6.0.4)
29
- ast (2.3.0)
30
- builder (3.2.3)
31
- byebug (9.0.6)
32
- coderay (1.1.1)
33
- foreigner (1.7.4)
34
- activerecord (>= 3.0.0)
35
- i18n (0.8.6)
36
- m (1.5.1)
37
- method_source (>= 0.6.7)
38
- rake (>= 0.9.2.2)
39
- method_source (0.8.2)
40
- minitest (5.10.2)
41
- parallel (1.11.2)
42
- parser (2.4.0.0)
43
- ast (~> 2.2)
44
- powerpack (0.1.1)
45
- proc_party (0.2.0)
46
- pry (0.10.4)
47
- coderay (~> 1.1.0)
48
- method_source (~> 0.8.1)
49
- slop (~> 3.4)
50
- pry-byebug (3.4.2)
51
- byebug (~> 9.0)
52
- pry (~> 0.10)
53
- rainbow (2.2.2)
54
- rake
55
- rake (10.5.0)
56
- rubocop (0.49.1)
57
- parallel (~> 1.10)
58
- parser (>= 2.3.3.1, < 3.0)
59
- powerpack (~> 0.1)
60
- rainbow (>= 1.99.1, < 3.0)
61
- ruby-progressbar (~> 1.7)
62
- unicode-display_width (~> 1.0, >= 1.0.1)
63
- ruby-progressbar (1.8.1)
64
- slop (3.6.0)
65
- sqlite3 (1.3.13)
66
- the_bath_of_zahn (0.0.2)
67
- thor (0.19.4)
68
- thread_safe (0.3.6)
69
- tzinfo (1.2.3)
70
- thread_safe (~> 0.1)
71
- unicode-display_width (1.3.0)
72
-
73
- PLATFORMS
74
- ruby
75
-
76
- DEPENDENCIES
77
- activerecord (= 4.2.9)
78
- appraisal
79
- bundler (~> 1.15)
80
- foreigner
81
- m (~> 1.5)
82
- minitest (~> 5.10)
83
- pry-byebug
84
- rake (~> 10.0)
85
- rubocop
86
- sqlite3
87
- the_bath_of_zahn
88
- who_am_i!
89
-
90
- BUNDLED WITH
91
- 1.15.4
@@ -1,90 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- who_am_i (0.0.2)
5
- activerecord (>= 3.2, < 5.2)
6
- parser
7
- proc_party
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- activemodel (5.0.4)
13
- activesupport (= 5.0.4)
14
- activerecord (5.0.4)
15
- activemodel (= 5.0.4)
16
- activesupport (= 5.0.4)
17
- arel (~> 7.0)
18
- activesupport (5.0.4)
19
- concurrent-ruby (~> 1.0, >= 1.0.2)
20
- i18n (~> 0.7)
21
- minitest (~> 5.1)
22
- tzinfo (~> 1.1)
23
- appraisal (2.2.0)
24
- bundler
25
- rake
26
- thor (>= 0.14.0)
27
- arel (7.1.4)
28
- ast (2.3.0)
29
- byebug (9.0.6)
30
- coderay (1.1.1)
31
- concurrent-ruby (1.0.5)
32
- foreigner (1.7.4)
33
- activerecord (>= 3.0.0)
34
- i18n (0.8.6)
35
- m (1.5.1)
36
- method_source (>= 0.6.7)
37
- rake (>= 0.9.2.2)
38
- method_source (0.8.2)
39
- minitest (5.10.2)
40
- parallel (1.11.2)
41
- parser (2.4.0.0)
42
- ast (~> 2.2)
43
- powerpack (0.1.1)
44
- proc_party (0.2.0)
45
- pry (0.10.4)
46
- coderay (~> 1.1.0)
47
- method_source (~> 0.8.1)
48
- slop (~> 3.4)
49
- pry-byebug (3.4.2)
50
- byebug (~> 9.0)
51
- pry (~> 0.10)
52
- rainbow (2.2.2)
53
- rake
54
- rake (10.5.0)
55
- rubocop (0.49.1)
56
- parallel (~> 1.10)
57
- parser (>= 2.3.3.1, < 3.0)
58
- powerpack (~> 0.1)
59
- rainbow (>= 1.99.1, < 3.0)
60
- ruby-progressbar (~> 1.7)
61
- unicode-display_width (~> 1.0, >= 1.0.1)
62
- ruby-progressbar (1.8.1)
63
- slop (3.6.0)
64
- sqlite3 (1.3.13)
65
- the_bath_of_zahn (0.0.2)
66
- thor (0.19.4)
67
- thread_safe (0.3.6)
68
- tzinfo (1.2.3)
69
- thread_safe (~> 0.1)
70
- unicode-display_width (1.3.0)
71
-
72
- PLATFORMS
73
- ruby
74
-
75
- DEPENDENCIES
76
- activerecord (= 5.0.4)
77
- appraisal
78
- bundler (~> 1.15)
79
- foreigner
80
- m (~> 1.5)
81
- minitest (~> 5.10)
82
- pry-byebug
83
- rake (~> 10.0)
84
- rubocop
85
- sqlite3
86
- the_bath_of_zahn
87
- who_am_i!
88
-
89
- BUNDLED WITH
90
- 1.15.4
@@ -1,90 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- who_am_i (0.0.2)
5
- activerecord (>= 3.2, < 5.2)
6
- parser
7
- proc_party
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- activemodel (5.1.2)
13
- activesupport (= 5.1.2)
14
- activerecord (5.1.2)
15
- activemodel (= 5.1.2)
16
- activesupport (= 5.1.2)
17
- arel (~> 8.0)
18
- activesupport (5.1.2)
19
- concurrent-ruby (~> 1.0, >= 1.0.2)
20
- i18n (~> 0.7)
21
- minitest (~> 5.1)
22
- tzinfo (~> 1.1)
23
- appraisal (2.2.0)
24
- bundler
25
- rake
26
- thor (>= 0.14.0)
27
- arel (8.0.0)
28
- ast (2.3.0)
29
- byebug (9.0.6)
30
- coderay (1.1.1)
31
- concurrent-ruby (1.0.5)
32
- foreigner (1.7.4)
33
- activerecord (>= 3.0.0)
34
- i18n (0.8.6)
35
- m (1.5.1)
36
- method_source (>= 0.6.7)
37
- rake (>= 0.9.2.2)
38
- method_source (0.8.2)
39
- minitest (5.10.2)
40
- parallel (1.11.2)
41
- parser (2.4.0.0)
42
- ast (~> 2.2)
43
- powerpack (0.1.1)
44
- proc_party (0.2.0)
45
- pry (0.10.4)
46
- coderay (~> 1.1.0)
47
- method_source (~> 0.8.1)
48
- slop (~> 3.4)
49
- pry-byebug (3.4.2)
50
- byebug (~> 9.0)
51
- pry (~> 0.10)
52
- rainbow (2.2.2)
53
- rake
54
- rake (10.5.0)
55
- rubocop (0.49.1)
56
- parallel (~> 1.10)
57
- parser (>= 2.3.3.1, < 3.0)
58
- powerpack (~> 0.1)
59
- rainbow (>= 1.99.1, < 3.0)
60
- ruby-progressbar (~> 1.7)
61
- unicode-display_width (~> 1.0, >= 1.0.1)
62
- ruby-progressbar (1.8.1)
63
- slop (3.6.0)
64
- sqlite3 (1.3.13)
65
- the_bath_of_zahn (0.0.2)
66
- thor (0.19.4)
67
- thread_safe (0.3.6)
68
- tzinfo (1.2.3)
69
- thread_safe (~> 0.1)
70
- unicode-display_width (1.3.0)
71
-
72
- PLATFORMS
73
- ruby
74
-
75
- DEPENDENCIES
76
- activerecord (= 5.1.2)
77
- appraisal
78
- bundler (~> 1.15)
79
- foreigner
80
- m (~> 1.5)
81
- minitest (~> 5.10)
82
- pry-byebug
83
- rake (~> 10.0)
84
- rubocop
85
- sqlite3
86
- the_bath_of_zahn
87
- who_am_i!
88
-
89
- BUNDLED WITH
90
- 1.15.4
@@ -1,13 +0,0 @@
1
- module WhoAmI
2
- module Function
3
- class LoadInflections
4
- include ProcParty
5
-
6
- def call
7
- if File.exist?("config/initializers/inflections.rb")
8
- load "config/initializers/inflections.rb"
9
- end
10
- end
11
- end
12
- end
13
- end