scopes_rails 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bdbb3b59b07a3eccc99d4ec079a495e95062db69
4
- data.tar.gz: e1329487a8b32415e37df0b6a8d05a7b74e8c55b
3
+ metadata.gz: ba1df521e1ced6a53886ff1861228b54bb5ce705
4
+ data.tar.gz: a5b7f915a8c916610955d595fcf87b36a6b746bb
5
5
  SHA512:
6
- metadata.gz: c48ec59d26aa8772aa0ae9fe792747bdc50b635e1560f498948b013b6855f37e6d9ce864bbb540895e680bb73f20d4bccd0d75af7cabaeea9033f8b305c4f9d7
7
- data.tar.gz: c3e7cfb036f9248a094110d0de61f589f770dac094787772632c41119026edac9acbe9b2d122762afd75e9628a181b1e02a26c5b6e1ee1954ccc5b8070f84fdf
6
+ metadata.gz: 810664b708b5cf81f05bdc7eb65f12a95a6bc233df7d094cf0490e45695d523f35c2adf7a15d3aae7f66093f2bee9de05893ef9abcbc83d6f28698967e9eceb6
7
+ data.tar.gz: c7e4a2b67da4e541fd0feb68d7225e8b034d00c3f87c904790fec5ccad3fb42cdafa3df9c0caf7f4b09c56d223ec5eb6a849cda7691ea486bc74fb0ff31a8b5c
@@ -3,7 +3,7 @@ class ScopeGenerator < Rails::Generators::NamedBase
3
3
 
4
4
  def create_scope_file
5
5
  empty_directory 'app/scopes/'
6
- create_file "app/scopes/#{file_name}_scopes.rb", <<-FILE
6
+ create_file "app/scopes/#{class_path.join('/')}/#{file_name}_scopes.rb", <<-FILE
7
7
  require 'scopes_rails/state_machine_scopes'
8
8
 
9
9
  module #{class_name}Scopes
@@ -1,3 +1,3 @@
1
1
  module ScopesRails
2
- VERSION = "0.0.1"
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scopes_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-01 00:00:00.000000000 Z
11
+ date: 2016-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -32,7 +32,6 @@ extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
34
  - MIT-LICENSE
35
- - README.rdoc
36
35
  - Rakefile
37
36
  - lib/generators/scope_generator.rb
38
37
  - lib/scopes_rails.rb
@@ -96,44 +95,44 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
95
  version: '0'
97
96
  requirements: []
98
97
  rubyforge_project:
99
- rubygems_version: 2.4.6
98
+ rubygems_version: 2.4.8
100
99
  signing_key:
101
100
  specification_version: 4
102
101
  summary: Summary of ScopesRails.
103
102
  test_files:
104
- - test/test_helper.rb
105
103
  - test/scopes_rails_test.rb
106
- - test/dummy/Rakefile
107
- - test/dummy/bin/rake
108
- - test/dummy/bin/rails
109
- - test/dummy/bin/setup
110
- - test/dummy/bin/bundle
111
- - test/dummy/config.ru
112
- - test/dummy/app/assets/stylesheets/application.css
113
- - test/dummy/app/assets/javascripts/application.js
114
- - test/dummy/app/controllers/application_controller.rb
115
- - test/dummy/app/helpers/application_helper.rb
116
- - test/dummy/app/views/layouts/application.html.erb
104
+ - test/test_helper.rb
105
+ - test/dummy/public/422.html
106
+ - test/dummy/public/500.html
117
107
  - test/dummy/public/favicon.ico
118
108
  - test/dummy/public/404.html
119
- - test/dummy/public/500.html
120
- - test/dummy/public/422.html
121
109
  - test/dummy/README.rdoc
110
+ - test/dummy/config/boot.rb
122
111
  - test/dummy/config/routes.rb
123
- - test/dummy/config/environments/development.rb
112
+ - test/dummy/config/locales/en.yml
124
113
  - test/dummy/config/environments/production.rb
125
114
  - test/dummy/config/environments/test.rb
126
- - test/dummy/config/database.yml
127
- - test/dummy/config/environment.rb
128
- - test/dummy/config/locales/en.yml
129
- - test/dummy/config/secrets.yml
115
+ - test/dummy/config/environments/development.rb
116
+ - test/dummy/config/application.rb
117
+ - test/dummy/config/initializers/backtrace_silencers.rb
130
118
  - test/dummy/config/initializers/cookies_serializer.rb
119
+ - test/dummy/config/initializers/assets.rb
120
+ - test/dummy/config/initializers/inflections.rb
131
121
  - test/dummy/config/initializers/filter_parameter_logging.rb
132
- - test/dummy/config/initializers/session_store.rb
133
- - test/dummy/config/initializers/backtrace_silencers.rb
134
- - test/dummy/config/initializers/mime_types.rb
135
122
  - test/dummy/config/initializers/wrap_parameters.rb
136
- - test/dummy/config/initializers/inflections.rb
137
- - test/dummy/config/initializers/assets.rb
138
- - test/dummy/config/application.rb
139
- - test/dummy/config/boot.rb
123
+ - test/dummy/config/initializers/mime_types.rb
124
+ - test/dummy/config/initializers/session_store.rb
125
+ - test/dummy/config/database.yml
126
+ - test/dummy/config/secrets.yml
127
+ - test/dummy/config/environment.rb
128
+ - test/dummy/bin/setup
129
+ - test/dummy/bin/rails
130
+ - test/dummy/bin/bundle
131
+ - test/dummy/bin/rake
132
+ - test/dummy/config.ru
133
+ - test/dummy/app/views/layouts/application.html.erb
134
+ - test/dummy/app/controllers/application_controller.rb
135
+ - test/dummy/app/helpers/application_helper.rb
136
+ - test/dummy/app/assets/stylesheets/application.css
137
+ - test/dummy/app/assets/javascripts/application.js
138
+ - test/dummy/Rakefile
@@ -1,3 +0,0 @@
1
- = ScopesRails
2
-
3
- This project rocks and uses MIT-LICENSE.