solidus_cmd 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +10 -9
- data/.rubocop.yml +232 -0
- data/Gemfile +0 -1
- data/LICENSE +26 -0
- data/README.md +6 -35
- data/Rakefile +2 -6
- data/bin/solidus +9 -1
- data/lib/solidus_cmd.rb +1 -13
- data/lib/solidus_cmd/extension.rb +11 -14
- data/lib/solidus_cmd/templates/extension/CONTRIBUTING.md +0 -0
- data/lib/solidus_cmd/templates/extension/Gemfile +4 -6
- data/lib/solidus_cmd/templates/extension/LICENSE +0 -0
- data/lib/solidus_cmd/templates/extension/README.md +1 -1
- data/lib/solidus_cmd/templates/extension/Rakefile +16 -7
- data/lib/solidus_cmd/templates/extension/app/assets/javascripts/spree/backend/%file_name%.js +0 -0
- data/lib/solidus_cmd/templates/extension/app/assets/javascripts/spree/frontend/%file_name%.js +0 -0
- data/lib/solidus_cmd/templates/extension/app/assets/stylesheets/spree/backend/%file_name%.css +0 -0
- data/lib/solidus_cmd/templates/extension/app/assets/stylesheets/spree/frontend/%file_name%.css +0 -0
- data/lib/solidus_cmd/templates/extension/config/locales/en.yml +1 -1
- data/lib/solidus_cmd/templates/extension/config/routes.rb +0 -0
- data/lib/solidus_cmd/templates/extension/extension.gemspec +22 -20
- data/lib/solidus_cmd/templates/extension/gitignore +1 -0
- data/lib/solidus_cmd/templates/extension/lib/%file_name%.rb.tt +1 -1
- data/lib/solidus_cmd/templates/extension/lib/%file_name%/engine.rb.tt +2 -2
- data/lib/solidus_cmd/templates/extension/lib/%file_name%/factories.rb.tt +0 -0
- data/lib/solidus_cmd/templates/extension/lib/%file_name%/version.rb.tt +3 -0
- data/lib/solidus_cmd/templates/extension/lib/generators/%file_name%/install/install_generator.rb.tt +4 -5
- data/lib/solidus_cmd/templates/extension/rspec +0 -0
- data/lib/solidus_cmd/templates/extension/rubocop.yml +231 -0
- data/lib/solidus_cmd/templates/extension/spec/spec_helper.rb.tt +2 -2
- data/lib/solidus_cmd/templates/extension/travis.yml +8 -0
- data/lib/solidus_cmd/version.rb +1 -1
- data/solidus_cmd.gemspec +22 -22
- data/spec/spec_helper.rb +27 -0
- metadata +50 -37
- data/.rspec +0 -2
- data/.travis.yml +0 -4
- data/CODE_OF_CONDUCT.md +0 -13
- data/LICENSE.txt +0 -21
- data/bin/console +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ea4891f16da58730c1ccb1ace46aadea472970d
|
4
|
+
data.tar.gz: 8923acb9b42417d4fdebf4cc71d4b28a565b9eeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70c5709ac326b7c045ab388bc1cd0bb176e24dbed848f475fe45c3aaeb29ab82ca343ee392793f8becd7409b7c3f67c49715a0d420d8c62b44e7ccf5ed46937a
|
7
|
+
data.tar.gz: 446688a931d9afceb6455d2e27162b8a40b2c41ac529e86c4a5641d212d0bae30b576a89de35109aa27fac3ee060bb3b4e242037e42dd442cfc8c6ca329a2a6b
|
data/.gitignore
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
spec/dummy
|
2
|
+
.sass-cache
|
3
|
+
coverage
|
4
|
+
Gemfile.lock
|
5
|
+
*.swp
|
6
|
+
.rvmrc
|
7
|
+
.ruby-gemsets
|
8
|
+
.ruby-version
|
9
|
+
.bundle
|
10
|
+
pkg
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,232 @@
|
|
1
|
+
# Relaxed.Ruby.Style
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
Exclude:
|
5
|
+
- 'spec/dummy/**/*'
|
6
|
+
- 'vendor/bundle/**/*'
|
7
|
+
- 'lib/solidus_cmd/templates/extension/**/*'
|
8
|
+
TargetRubyVersion: 2.1
|
9
|
+
|
10
|
+
# Sometimes I believe this reads better
|
11
|
+
# This also causes spacing issues on multi-line fixes
|
12
|
+
Style/BracesAroundHashParameters:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
# We use class vars and will have to continue doing so for compatability
|
16
|
+
Style/ClassVars:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
# We need these names for backwards compatability
|
20
|
+
Style/PredicateName:
|
21
|
+
Enabled: false
|
22
|
+
|
23
|
+
Style/AccessorMethodName:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
# This has been used for customization
|
27
|
+
Style/MutableConstant:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Style/ClassAndModuleChildren:
|
31
|
+
Enabled: false
|
32
|
+
|
33
|
+
Style/GuardClause:
|
34
|
+
Enabled: false
|
35
|
+
|
36
|
+
Style/WordArray:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
Style/ConditionalAssignment:
|
40
|
+
Enabled: false
|
41
|
+
|
42
|
+
Performance/Count:
|
43
|
+
Enabled: false
|
44
|
+
|
45
|
+
Style/RaiseArgs:
|
46
|
+
Enabled: false
|
47
|
+
|
48
|
+
Style/OpMethod:
|
49
|
+
Enabled: false
|
50
|
+
|
51
|
+
# We can use good judgement here
|
52
|
+
Style/RegexpLiteral:
|
53
|
+
Enabled: false
|
54
|
+
|
55
|
+
# Unicode comments are useful
|
56
|
+
Style/AsciiComments:
|
57
|
+
Enabled: false
|
58
|
+
|
59
|
+
Lint/EndAlignment:
|
60
|
+
Enabled: false
|
61
|
+
|
62
|
+
Style/ElseAlignment:
|
63
|
+
Enabled: false
|
64
|
+
|
65
|
+
Style/IndentationWidth:
|
66
|
+
Enabled: false
|
67
|
+
|
68
|
+
Style/AlignParameters:
|
69
|
+
Enabled: false
|
70
|
+
|
71
|
+
Style/ClosingParenthesisIndentation:
|
72
|
+
Enabled: false
|
73
|
+
|
74
|
+
Style/MultilineMethodCallIndentation:
|
75
|
+
Enabled: false
|
76
|
+
|
77
|
+
Style/IndentArray:
|
78
|
+
Enabled: false
|
79
|
+
|
80
|
+
Style/IndentHash:
|
81
|
+
Enabled: false
|
82
|
+
|
83
|
+
Style/AlignHash:
|
84
|
+
Enabled: false
|
85
|
+
|
86
|
+
# From http://relaxed.ruby.style/
|
87
|
+
|
88
|
+
Style/Alias:
|
89
|
+
Enabled: false
|
90
|
+
StyleGuide: http://relaxed.ruby.style/#stylealias
|
91
|
+
|
92
|
+
Style/BeginBlock:
|
93
|
+
Enabled: false
|
94
|
+
StyleGuide: http://relaxed.ruby.style/#stylebeginblock
|
95
|
+
|
96
|
+
Style/BlockDelimiters:
|
97
|
+
Enabled: false
|
98
|
+
StyleGuide: http://relaxed.ruby.style/#styleblockdelimiters
|
99
|
+
|
100
|
+
Style/Documentation:
|
101
|
+
Enabled: false
|
102
|
+
StyleGuide: http://relaxed.ruby.style/#styledocumentation
|
103
|
+
|
104
|
+
Style/DotPosition:
|
105
|
+
Enabled: false
|
106
|
+
StyleGuide: http://relaxed.ruby.style/#styledotposition
|
107
|
+
|
108
|
+
Style/DoubleNegation:
|
109
|
+
Enabled: false
|
110
|
+
StyleGuide: http://relaxed.ruby.style/#styledoublenegation
|
111
|
+
|
112
|
+
Style/EndBlock:
|
113
|
+
Enabled: false
|
114
|
+
StyleGuide: http://relaxed.ruby.style/#styleendblock
|
115
|
+
|
116
|
+
Style/FormatString:
|
117
|
+
Enabled: false
|
118
|
+
StyleGuide: http://relaxed.ruby.style/#styleformatstring
|
119
|
+
|
120
|
+
Style/IfUnlessModifier:
|
121
|
+
Enabled: false
|
122
|
+
StyleGuide: http://relaxed.ruby.style/#styleifunlessmodifier
|
123
|
+
|
124
|
+
Style/Lambda:
|
125
|
+
Enabled: false
|
126
|
+
StyleGuide: http://relaxed.ruby.style/#stylelambda
|
127
|
+
|
128
|
+
Style/ModuleFunction:
|
129
|
+
Enabled: false
|
130
|
+
StyleGuide: http://relaxed.ruby.style/#stylemodulefunction
|
131
|
+
|
132
|
+
Style/MultilineBlockChain:
|
133
|
+
Enabled: false
|
134
|
+
StyleGuide: http://relaxed.ruby.style/#stylemultilineblockchain
|
135
|
+
|
136
|
+
Style/NegatedIf:
|
137
|
+
Enabled: false
|
138
|
+
StyleGuide: http://relaxed.ruby.style/#stylenegatedif
|
139
|
+
|
140
|
+
Style/NegatedWhile:
|
141
|
+
Enabled: false
|
142
|
+
StyleGuide: http://relaxed.ruby.style/#stylenegatedwhile
|
143
|
+
|
144
|
+
Style/ParallelAssignment:
|
145
|
+
Enabled: false
|
146
|
+
StyleGuide: http://relaxed.ruby.style/#styleparallelassignment
|
147
|
+
|
148
|
+
Style/PercentLiteralDelimiters:
|
149
|
+
Enabled: false
|
150
|
+
StyleGuide: http://relaxed.ruby.style/#stylepercentliteraldelimiters
|
151
|
+
|
152
|
+
Style/PerlBackrefs:
|
153
|
+
Enabled: false
|
154
|
+
StyleGuide: http://relaxed.ruby.style/#styleperlbackrefs
|
155
|
+
|
156
|
+
Style/Semicolon:
|
157
|
+
Enabled: false
|
158
|
+
StyleGuide: http://relaxed.ruby.style/#stylesemicolon
|
159
|
+
|
160
|
+
Style/SignalException:
|
161
|
+
Enabled: false
|
162
|
+
StyleGuide: http://relaxed.ruby.style/#stylesignalexception
|
163
|
+
|
164
|
+
Style/SingleLineBlockParams:
|
165
|
+
Enabled: false
|
166
|
+
StyleGuide: http://relaxed.ruby.style/#stylesinglelineblockparams
|
167
|
+
|
168
|
+
Style/SingleLineMethods:
|
169
|
+
Enabled: false
|
170
|
+
StyleGuide: http://relaxed.ruby.style/#stylesinglelinemethods
|
171
|
+
|
172
|
+
Style/SpaceBeforeBlockBraces:
|
173
|
+
Enabled: false
|
174
|
+
StyleGuide: http://relaxed.ruby.style/#stylespacebeforeblockbraces
|
175
|
+
|
176
|
+
Style/SpaceInsideParens:
|
177
|
+
Enabled: false
|
178
|
+
StyleGuide: http://relaxed.ruby.style/#stylespaceinsideparens
|
179
|
+
|
180
|
+
Style/SpecialGlobalVars:
|
181
|
+
Enabled: false
|
182
|
+
StyleGuide: http://relaxed.ruby.style/#stylespecialglobalvars
|
183
|
+
|
184
|
+
Style/StringLiterals:
|
185
|
+
Enabled: false
|
186
|
+
StyleGuide: http://relaxed.ruby.style/#stylestringliterals
|
187
|
+
|
188
|
+
Style/SymbolProc:
|
189
|
+
Enabled: false
|
190
|
+
|
191
|
+
Style/WhileUntilModifier:
|
192
|
+
Enabled: false
|
193
|
+
StyleGuide: http://relaxed.ruby.style/#stylewhileuntilmodifier
|
194
|
+
|
195
|
+
Lint/AmbiguousRegexpLiteral:
|
196
|
+
Enabled: false
|
197
|
+
StyleGuide: http://relaxed.ruby.style/#lintambiguousregexpliteral
|
198
|
+
|
199
|
+
Lint/AssignmentInCondition:
|
200
|
+
Enabled: false
|
201
|
+
StyleGuide: http://relaxed.ruby.style/#lintassignmentincondition
|
202
|
+
|
203
|
+
Lint/HandleExceptions:
|
204
|
+
Exclude:
|
205
|
+
- '*/Rakefile'
|
206
|
+
|
207
|
+
Metrics/AbcSize:
|
208
|
+
Enabled: false
|
209
|
+
|
210
|
+
Metrics/BlockNesting:
|
211
|
+
Enabled: false
|
212
|
+
|
213
|
+
Metrics/ClassLength:
|
214
|
+
Enabled: false
|
215
|
+
|
216
|
+
Metrics/ModuleLength:
|
217
|
+
Enabled: false
|
218
|
+
|
219
|
+
Metrics/CyclomaticComplexity:
|
220
|
+
Enabled: false
|
221
|
+
|
222
|
+
Metrics/LineLength:
|
223
|
+
Enabled: false
|
224
|
+
|
225
|
+
Metrics/MethodLength:
|
226
|
+
Enabled: false
|
227
|
+
|
228
|
+
Metrics/ParameterLists:
|
229
|
+
Enabled: false
|
230
|
+
|
231
|
+
Metrics/PerceivedComplexity:
|
232
|
+
Enabled: false
|
data/Gemfile
CHANGED
data/LICENSE
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
Copyright (c) 2007-2014, Spree Commerce, Inc. and other contributors
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without modification,
|
5
|
+
are permitted provided that the following conditions are met:
|
6
|
+
|
7
|
+
* Redistributions of source code must retain the above copyright notice,
|
8
|
+
this list of conditions and the following disclaimer.
|
9
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
10
|
+
this list of conditions and the following disclaimer in the documentation
|
11
|
+
and/or other materials provided with the distribution.
|
12
|
+
* Neither the name Spree nor the names of its contributors may be used to
|
13
|
+
endorse or promote products derived from this software without specific
|
14
|
+
prior written permission.
|
15
|
+
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
20
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
21
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
22
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
23
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
24
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
25
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
26
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.md
CHANGED
@@ -1,41 +1,12 @@
|
|
1
|
-
|
1
|
+
Solidus cmd
|
2
|
+
===========
|
2
3
|
|
3
|
-
|
4
|
+
Command line utility to create new Solidus extensions
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
6
|
+
See the main solidus project: https://github.com/solidusio/solidus
|
10
7
|
|
8
|
+
To build a new Solidus Extension, you can run
|
11
9
|
```ruby
|
12
|
-
|
10
|
+
solidus extension my_extension
|
13
11
|
```
|
14
12
|
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install solidus_cmd
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/solidus_cmd. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
36
|
-
|
37
|
-
|
38
|
-
## License
|
39
|
-
|
40
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
-
|
data/Rakefile
CHANGED
data/bin/solidus
CHANGED
data/lib/solidus_cmd.rb
CHANGED
@@ -1,13 +1 @@
|
|
1
|
-
require
|
2
|
-
|
3
|
-
require 'thor'
|
4
|
-
require 'thor/group'
|
5
|
-
|
6
|
-
case ARGV.first
|
7
|
-
when 'version', '-v', '--version'
|
8
|
-
puts SolidusCmd::VERSION
|
9
|
-
when 'extension'
|
10
|
-
ARGV.shift
|
11
|
-
require 'solidus_cmd/extension'
|
12
|
-
SolidusCmd::Extension.start
|
13
|
-
end
|
1
|
+
require 'solidus_cmd/extension'
|
@@ -1,10 +1,12 @@
|
|
1
|
-
|
1
|
+
require 'thor'
|
2
|
+
require 'thor/group'
|
2
3
|
|
4
|
+
module SolidusCmd
|
3
5
|
class Extension < Thor::Group
|
4
6
|
include Thor::Actions
|
5
7
|
|
6
8
|
desc "builds a solidus extension"
|
7
|
-
argument :file_name, :
|
9
|
+
argument :file_name, type: :string, desc: 'rails app_path', default: '.'
|
8
10
|
|
9
11
|
source_root File.expand_path('../templates/extension', __FILE__)
|
10
12
|
|
@@ -27,29 +29,24 @@ module SolidusCmd
|
|
27
29
|
template 'config/locales/en.yml', "#{file_name}/config/locales/en.yml"
|
28
30
|
template 'rspec', "#{file_name}/.rspec"
|
29
31
|
template 'spec/spec_helper.rb.tt', "#{file_name}/spec/spec_helper.rb"
|
30
|
-
|
31
|
-
|
32
|
-
def final_banner
|
33
|
-
say %Q{
|
34
|
-
#{'*' * 80}
|
35
|
-
|
36
|
-
Your extension has been generated.
|
37
|
-
|
38
|
-
#{'*' * 80}
|
39
|
-
}
|
32
|
+
template 'rubocop.yml', "#{file_name}/.rubocop.yml"
|
33
|
+
template 'travis.yml', "#{file_name}/.travis.yml"
|
40
34
|
end
|
41
35
|
|
42
36
|
no_tasks do
|
43
37
|
def class_name
|
44
38
|
Thor::Util.camel_case file_name
|
45
39
|
end
|
46
|
-
|
40
|
+
|
41
|
+
def solidus_version
|
42
|
+
'~> 1.0'
|
43
|
+
end
|
44
|
+
|
47
45
|
def use_prefix(prefix)
|
48
46
|
unless file_name =~ /^#{prefix}/
|
49
47
|
@file_name = prefix + Thor::Util.snake_case(file_name)
|
50
48
|
end
|
51
49
|
end
|
52
50
|
end
|
53
|
-
|
54
51
|
end
|
55
52
|
end
|
File without changes
|
@@ -1,9 +1,7 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem
|
4
|
-
|
5
|
-
|
6
|
-
gem "pry-byebug"
|
7
|
-
end
|
3
|
+
gem 'solidus', github: 'solidusio/solidus'
|
4
|
+
# Provides basic authentication functionality for testing parts of your engine
|
5
|
+
gem 'solidus_auth_devise', '~> 1.0'
|
8
6
|
|
9
7
|
gemspec
|
File without changes
|
@@ -22,7 +22,7 @@ bundle exec rails g <%= file_name %>:install
|
|
22
22
|
Testing
|
23
23
|
-------
|
24
24
|
|
25
|
-
First bundle your dependencies, then run `rake`. `rake` will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using `rake test_app`.
|
25
|
+
First bundle your dependencies, then run `rake`. `rake` will default to building the dummy app if it does not exist, then it will run specs, and [Rubocop](https://github.com/bbatsov/rubocop) static code analysis. The dummy app can be regenerated by using `rake test_app`.
|
26
26
|
|
27
27
|
```shell
|
28
28
|
bundle
|
@@ -1,17 +1,26 @@
|
|
1
1
|
require 'bundler'
|
2
|
+
|
2
3
|
Bundler::GemHelper.install_tasks
|
3
4
|
|
4
|
-
|
5
|
-
require 'spree/testing_support/extension_rake'
|
5
|
+
begin
|
6
|
+
require 'spree/testing_support/extension_rake'
|
7
|
+
require 'rubocop/rake_task'
|
8
|
+
require 'rspec/core/rake_task'
|
9
|
+
|
10
|
+
RSpec::Core::RakeTask.new(:spec)
|
6
11
|
|
7
|
-
|
12
|
+
RuboCop::RakeTask.new
|
13
|
+
|
14
|
+
task default: %i(first_run rubocop spec)
|
15
|
+
rescue LoadError
|
16
|
+
# no rspec available
|
17
|
+
end
|
8
18
|
|
9
|
-
task :
|
10
|
-
if Dir[
|
19
|
+
task :first_run do
|
20
|
+
if Dir['spec/dummy'].empty?
|
11
21
|
Rake::Task[:test_app].invoke
|
12
|
-
Dir.chdir(
|
22
|
+
Dir.chdir('../../')
|
13
23
|
end
|
14
|
-
Rake::Task[:spec].invoke
|
15
24
|
end
|
16
25
|
|
17
26
|
desc 'Generates a dummy app for testing'
|
data/lib/solidus_cmd/templates/extension/app/assets/javascripts/spree/backend/%file_name%.js
CHANGED
File without changes
|
data/lib/solidus_cmd/templates/extension/app/assets/javascripts/spree/frontend/%file_name%.js
CHANGED
File without changes
|
data/lib/solidus_cmd/templates/extension/app/assets/stylesheets/spree/backend/%file_name%.css
CHANGED
File without changes
|
data/lib/solidus_cmd/templates/extension/app/assets/stylesheets/spree/frontend/%file_name%.css
CHANGED
File without changes
|
File without changes
|
@@ -1,30 +1,32 @@
|
|
1
1
|
# encoding: UTF-8
|
2
|
+
$:.push File.expand_path('../lib', __FILE__)
|
3
|
+
require '<%= file_name %>/version'
|
4
|
+
|
2
5
|
Gem::Specification.new do |s|
|
3
|
-
s.platform = Gem::Platform::RUBY
|
4
6
|
s.name = '<%= file_name %>'
|
5
|
-
s.version =
|
6
|
-
s.summary = 'TODO
|
7
|
-
s.description = 'TODO
|
8
|
-
s.
|
7
|
+
s.version = <%= class_name %>::VERSION
|
8
|
+
s.summary = 'TODO'
|
9
|
+
s.description = 'TODO'
|
10
|
+
s.license = 'BSD-3-Clause'
|
9
11
|
|
10
12
|
# s.author = 'You'
|
11
13
|
# s.email = 'you@example.com'
|
12
|
-
# s.homepage = 'http://www.
|
14
|
+
# s.homepage = 'http://www.example.com'
|
13
15
|
|
14
|
-
s.files
|
15
|
-
s.test_files
|
16
|
-
s.require_path = "lib"
|
17
|
-
s.requirements << "none"
|
16
|
+
s.files = Dir["{app,config,db,lib}/**/*", 'LICENSE', 'Rakefile', 'README.md']
|
17
|
+
s.test_files = Dir['test/**/*']
|
18
18
|
|
19
|
-
s.add_dependency
|
19
|
+
s.add_dependency 'solidus_core', '<%= solidus_version %>'
|
20
20
|
|
21
|
-
s.add_development_dependency
|
22
|
-
s.add_development_dependency
|
23
|
-
s.add_development_dependency
|
24
|
-
s.add_development_dependency
|
25
|
-
s.add_development_dependency
|
26
|
-
s.add_development_dependency
|
27
|
-
s.add_development_dependency
|
28
|
-
s.add_development_dependency
|
29
|
-
s.add_development_dependency
|
21
|
+
s.add_development_dependency 'capybara'
|
22
|
+
s.add_development_dependency 'poltergeist'
|
23
|
+
s.add_development_dependency 'coffee-rails'
|
24
|
+
s.add_development_dependency 'sass-rails'
|
25
|
+
s.add_development_dependency 'database_cleaner'
|
26
|
+
s.add_development_dependency 'factory_girl'
|
27
|
+
s.add_development_dependency 'rspec-rails'
|
28
|
+
s.add_development_dependency 'rubocop', '0.37.2'
|
29
|
+
s.add_development_dependency 'rubocop-rspec', '1.4.0'
|
30
|
+
s.add_development_dependency 'simplecov'
|
31
|
+
s.add_development_dependency 'sqlite3'
|
30
32
|
end
|
@@ -1,2 +1,2 @@
|
|
1
|
-
require '
|
1
|
+
require 'solidus_core'
|
2
2
|
require '<%=file_name%>/engine'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module <%= class_name %>
|
2
2
|
class Engine < Rails::Engine
|
3
|
-
require
|
3
|
+
require 'spree/core'
|
4
4
|
isolate_namespace Spree
|
5
5
|
engine_name '<%= file_name %>'
|
6
6
|
|
@@ -15,6 +15,6 @@ module <%= class_name %>
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
-
config.to_prepare
|
18
|
+
config.to_prepare(&method(:activate).to_proc)
|
19
19
|
end
|
20
20
|
end
|
File without changes
|
data/lib/solidus_cmd/templates/extension/lib/generators/%file_name%/install/install_generator.rb.tt
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
module <%= class_name %>
|
2
2
|
module Generators
|
3
3
|
class InstallGenerator < Rails::Generators::Base
|
4
|
-
|
5
|
-
class_option :auto_run_migrations, :type => :boolean, :default => false
|
4
|
+
class_option :auto_run_migrations, type: :boolean, default: false
|
6
5
|
|
7
6
|
def add_javascripts
|
8
7
|
append_file 'vendor/assets/javascripts/spree/frontend/all.js', "//= require spree/frontend/<%= file_name %>\n"
|
@@ -10,8 +9,8 @@ module <%= class_name %>
|
|
10
9
|
end
|
11
10
|
|
12
11
|
def add_stylesheets
|
13
|
-
inject_into_file 'vendor/assets/stylesheets/spree/frontend/all.css', " *= require spree/frontend/<%= file_name %>\n", :
|
14
|
-
inject_into_file 'vendor/assets/stylesheets/spree/backend/all.css', " *= require spree/backend/<%= file_name %>\n", :
|
12
|
+
inject_into_file 'vendor/assets/stylesheets/spree/frontend/all.css', " *= require spree/frontend/<%= file_name %>\n", before: /\*\//, verbose: true
|
13
|
+
inject_into_file 'vendor/assets/stylesheets/spree/backend/all.css', " *= require spree/backend/<%= file_name %>\n", before: /\*\//, verbose: true
|
15
14
|
end
|
16
15
|
|
17
16
|
def add_migrations
|
@@ -19,7 +18,7 @@ module <%= class_name %>
|
|
19
18
|
end
|
20
19
|
|
21
20
|
def run_migrations
|
22
|
-
run_migrations = options[:auto_run_migrations] || ['', 'y', 'Y'].include?(ask
|
21
|
+
run_migrations = options[:auto_run_migrations] || ['', 'y', 'Y'].include?(ask('Would you like to run the migrations now? [Y/n]'))
|
23
22
|
if run_migrations
|
24
23
|
run 'bundle exec rake db:migrate'
|
25
24
|
else
|
File without changes
|
@@ -0,0 +1,231 @@
|
|
1
|
+
# Relaxed.Ruby.Style
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
Exclude:
|
5
|
+
- 'spec/dummy/**/*'
|
6
|
+
- 'vendor/bundle/**/*'
|
7
|
+
TargetRubyVersion: 2.1
|
8
|
+
|
9
|
+
# Sometimes I believe this reads better
|
10
|
+
# This also causes spacing issues on multi-line fixes
|
11
|
+
Style/BracesAroundHashParameters:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
# We use class vars and will have to continue doing so for compatability
|
15
|
+
Style/ClassVars:
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
# We need these names for backwards compatability
|
19
|
+
Style/PredicateName:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Style/AccessorMethodName:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
# This has been used for customization
|
26
|
+
Style/MutableConstant:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
Style/ClassAndModuleChildren:
|
30
|
+
Enabled: false
|
31
|
+
|
32
|
+
Style/GuardClause:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
Style/WordArray:
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
Style/ConditionalAssignment:
|
39
|
+
Enabled: false
|
40
|
+
|
41
|
+
Performance/Count:
|
42
|
+
Enabled: false
|
43
|
+
|
44
|
+
Style/RaiseArgs:
|
45
|
+
Enabled: false
|
46
|
+
|
47
|
+
Style/OpMethod:
|
48
|
+
Enabled: false
|
49
|
+
|
50
|
+
# We can use good judgement here
|
51
|
+
Style/RegexpLiteral:
|
52
|
+
Enabled: false
|
53
|
+
|
54
|
+
# Unicode comments are useful
|
55
|
+
Style/AsciiComments:
|
56
|
+
Enabled: false
|
57
|
+
|
58
|
+
Lint/EndAlignment:
|
59
|
+
Enabled: false
|
60
|
+
|
61
|
+
Style/ElseAlignment:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
Style/IndentationWidth:
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
Style/AlignParameters:
|
68
|
+
Enabled: false
|
69
|
+
|
70
|
+
Style/ClosingParenthesisIndentation:
|
71
|
+
Enabled: false
|
72
|
+
|
73
|
+
Style/MultilineMethodCallIndentation:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
Style/IndentArray:
|
77
|
+
Enabled: false
|
78
|
+
|
79
|
+
Style/IndentHash:
|
80
|
+
Enabled: false
|
81
|
+
|
82
|
+
Style/AlignHash:
|
83
|
+
Enabled: false
|
84
|
+
|
85
|
+
# From http://relaxed.ruby.style/
|
86
|
+
|
87
|
+
Style/Alias:
|
88
|
+
Enabled: false
|
89
|
+
StyleGuide: http://relaxed.ruby.style/#stylealias
|
90
|
+
|
91
|
+
Style/BeginBlock:
|
92
|
+
Enabled: false
|
93
|
+
StyleGuide: http://relaxed.ruby.style/#stylebeginblock
|
94
|
+
|
95
|
+
Style/BlockDelimiters:
|
96
|
+
Enabled: false
|
97
|
+
StyleGuide: http://relaxed.ruby.style/#styleblockdelimiters
|
98
|
+
|
99
|
+
Style/Documentation:
|
100
|
+
Enabled: false
|
101
|
+
StyleGuide: http://relaxed.ruby.style/#styledocumentation
|
102
|
+
|
103
|
+
Style/DotPosition:
|
104
|
+
Enabled: false
|
105
|
+
StyleGuide: http://relaxed.ruby.style/#styledotposition
|
106
|
+
|
107
|
+
Style/DoubleNegation:
|
108
|
+
Enabled: false
|
109
|
+
StyleGuide: http://relaxed.ruby.style/#styledoublenegation
|
110
|
+
|
111
|
+
Style/EndBlock:
|
112
|
+
Enabled: false
|
113
|
+
StyleGuide: http://relaxed.ruby.style/#styleendblock
|
114
|
+
|
115
|
+
Style/FormatString:
|
116
|
+
Enabled: false
|
117
|
+
StyleGuide: http://relaxed.ruby.style/#styleformatstring
|
118
|
+
|
119
|
+
Style/IfUnlessModifier:
|
120
|
+
Enabled: false
|
121
|
+
StyleGuide: http://relaxed.ruby.style/#styleifunlessmodifier
|
122
|
+
|
123
|
+
Style/Lambda:
|
124
|
+
Enabled: false
|
125
|
+
StyleGuide: http://relaxed.ruby.style/#stylelambda
|
126
|
+
|
127
|
+
Style/ModuleFunction:
|
128
|
+
Enabled: false
|
129
|
+
StyleGuide: http://relaxed.ruby.style/#stylemodulefunction
|
130
|
+
|
131
|
+
Style/MultilineBlockChain:
|
132
|
+
Enabled: false
|
133
|
+
StyleGuide: http://relaxed.ruby.style/#stylemultilineblockchain
|
134
|
+
|
135
|
+
Style/NegatedIf:
|
136
|
+
Enabled: false
|
137
|
+
StyleGuide: http://relaxed.ruby.style/#stylenegatedif
|
138
|
+
|
139
|
+
Style/NegatedWhile:
|
140
|
+
Enabled: false
|
141
|
+
StyleGuide: http://relaxed.ruby.style/#stylenegatedwhile
|
142
|
+
|
143
|
+
Style/ParallelAssignment:
|
144
|
+
Enabled: false
|
145
|
+
StyleGuide: http://relaxed.ruby.style/#styleparallelassignment
|
146
|
+
|
147
|
+
Style/PercentLiteralDelimiters:
|
148
|
+
Enabled: false
|
149
|
+
StyleGuide: http://relaxed.ruby.style/#stylepercentliteraldelimiters
|
150
|
+
|
151
|
+
Style/PerlBackrefs:
|
152
|
+
Enabled: false
|
153
|
+
StyleGuide: http://relaxed.ruby.style/#styleperlbackrefs
|
154
|
+
|
155
|
+
Style/Semicolon:
|
156
|
+
Enabled: false
|
157
|
+
StyleGuide: http://relaxed.ruby.style/#stylesemicolon
|
158
|
+
|
159
|
+
Style/SignalException:
|
160
|
+
Enabled: false
|
161
|
+
StyleGuide: http://relaxed.ruby.style/#stylesignalexception
|
162
|
+
|
163
|
+
Style/SingleLineBlockParams:
|
164
|
+
Enabled: false
|
165
|
+
StyleGuide: http://relaxed.ruby.style/#stylesinglelineblockparams
|
166
|
+
|
167
|
+
Style/SingleLineMethods:
|
168
|
+
Enabled: false
|
169
|
+
StyleGuide: http://relaxed.ruby.style/#stylesinglelinemethods
|
170
|
+
|
171
|
+
Style/SpaceBeforeBlockBraces:
|
172
|
+
Enabled: false
|
173
|
+
StyleGuide: http://relaxed.ruby.style/#stylespacebeforeblockbraces
|
174
|
+
|
175
|
+
Style/SpaceInsideParens:
|
176
|
+
Enabled: false
|
177
|
+
StyleGuide: http://relaxed.ruby.style/#stylespaceinsideparens
|
178
|
+
|
179
|
+
Style/SpecialGlobalVars:
|
180
|
+
Enabled: false
|
181
|
+
StyleGuide: http://relaxed.ruby.style/#stylespecialglobalvars
|
182
|
+
|
183
|
+
Style/StringLiterals:
|
184
|
+
Enabled: false
|
185
|
+
StyleGuide: http://relaxed.ruby.style/#stylestringliterals
|
186
|
+
|
187
|
+
Style/SymbolProc:
|
188
|
+
Enabled: false
|
189
|
+
|
190
|
+
Style/WhileUntilModifier:
|
191
|
+
Enabled: false
|
192
|
+
StyleGuide: http://relaxed.ruby.style/#stylewhileuntilmodifier
|
193
|
+
|
194
|
+
Lint/AmbiguousRegexpLiteral:
|
195
|
+
Enabled: false
|
196
|
+
StyleGuide: http://relaxed.ruby.style/#lintambiguousregexpliteral
|
197
|
+
|
198
|
+
Lint/AssignmentInCondition:
|
199
|
+
Enabled: false
|
200
|
+
StyleGuide: http://relaxed.ruby.style/#lintassignmentincondition
|
201
|
+
|
202
|
+
Lint/HandleExceptions:
|
203
|
+
Exclude:
|
204
|
+
- 'Rakefile'
|
205
|
+
|
206
|
+
Metrics/AbcSize:
|
207
|
+
Enabled: false
|
208
|
+
|
209
|
+
Metrics/BlockNesting:
|
210
|
+
Enabled: false
|
211
|
+
|
212
|
+
Metrics/ClassLength:
|
213
|
+
Enabled: false
|
214
|
+
|
215
|
+
Metrics/ModuleLength:
|
216
|
+
Enabled: false
|
217
|
+
|
218
|
+
Metrics/CyclomaticComplexity:
|
219
|
+
Enabled: false
|
220
|
+
|
221
|
+
Metrics/LineLength:
|
222
|
+
Enabled: false
|
223
|
+
|
224
|
+
Metrics/MethodLength:
|
225
|
+
Enabled: false
|
226
|
+
|
227
|
+
Metrics/ParameterLists:
|
228
|
+
Enabled: false
|
229
|
+
|
230
|
+
Metrics/PerceivedComplexity:
|
231
|
+
Enabled: false
|
@@ -13,7 +13,7 @@ end
|
|
13
13
|
# Configure Rails Environment
|
14
14
|
ENV['RAILS_ENV'] = 'test'
|
15
15
|
|
16
|
-
require File.expand_path('../dummy/config/environment.rb',
|
16
|
+
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
17
17
|
|
18
18
|
require 'rspec/rails'
|
19
19
|
require 'database_cleaner'
|
@@ -83,5 +83,5 @@ RSpec.configure do |config|
|
|
83
83
|
end
|
84
84
|
|
85
85
|
config.fail_fast = ENV['FAIL_FAST'] || false
|
86
|
-
config.order =
|
86
|
+
config.order = 'random'
|
87
87
|
end
|
data/lib/solidus_cmd/version.rb
CHANGED
data/solidus_cmd.gemspec
CHANGED
@@ -1,27 +1,27 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
4
3
|
require 'solidus_cmd/version'
|
5
4
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = 'solidus_cmd'
|
7
|
+
s.version = SolidusCmd::VERSION
|
8
|
+
s.authors = 'Solidus Team'
|
9
|
+
s.email = 'contact@solidus.io'
|
10
|
+
s.homepage = 'http://solidus.io'
|
11
|
+
s.license = 'BSD-3-Clause'
|
12
|
+
s.summary = 'Solidus command line utility'
|
13
|
+
s.description = 'tools to create new Solidus extensions'
|
11
14
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
|
+
s.bindir = 'bin'
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
16
20
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
spec.add_development_dependency "bundler", "~> 1.10"
|
25
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
-
spec.add_development_dependency "rspec"
|
21
|
+
s.add_development_dependency 'rspec'
|
22
|
+
s.add_development_dependency 'rake'
|
23
|
+
s.add_development_dependency 'rubocop', '0.37.2'
|
24
|
+
s.add_development_dependency 'rubocop-rspec', '1.4.0'
|
25
|
+
# Temporary hack until https://github.com/wycats/thor/issues/234 is fixed
|
26
|
+
s.add_dependency 'thor', '~> 0.14'
|
27
27
|
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
if ENV["COVERAGE"]
|
2
|
+
# Run Coverage report
|
3
|
+
require 'simplecov'
|
4
|
+
SimpleCov.start do
|
5
|
+
add_group 'Controllers', 'app/controllers'
|
6
|
+
add_group 'Helpers', 'app/helpers'
|
7
|
+
add_group 'Mailers', 'app/mailers'
|
8
|
+
add_group 'Models', 'app/models'
|
9
|
+
add_group 'Views', 'app/views'
|
10
|
+
add_group 'Libraries', 'lib'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
|
15
|
+
# from the project root directory.
|
16
|
+
ENV["RAILS_ENV"] ||= 'test'
|
17
|
+
|
18
|
+
RSpec.configure do |config|
|
19
|
+
config.color = true
|
20
|
+
config.mock_with :rspec
|
21
|
+
|
22
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
23
|
+
|
24
|
+
config.use_transactional_fixtures = false
|
25
|
+
|
26
|
+
config.fail_fast = ENV['FAIL_FAST'] || false
|
27
|
+
end
|
metadata
CHANGED
@@ -1,89 +1,98 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_cmd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
20
|
-
type: :
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rubocop
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.37.2
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.37.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec
|
56
|
+
name: rubocop-rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 1.4.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
69
|
-
|
70
|
-
|
71
|
-
|
68
|
+
version: 1.4.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: thor
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.14'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.14'
|
83
|
+
description: tools to create new Solidus extensions
|
84
|
+
email: contact@solidus.io
|
72
85
|
executables:
|
73
|
-
- console
|
74
86
|
- solidus
|
75
87
|
extensions: []
|
76
88
|
extra_rdoc_files: []
|
77
89
|
files:
|
78
90
|
- ".gitignore"
|
79
|
-
- ".
|
80
|
-
- ".travis.yml"
|
81
|
-
- CODE_OF_CONDUCT.md
|
91
|
+
- ".rubocop.yml"
|
82
92
|
- Gemfile
|
83
|
-
- LICENSE
|
93
|
+
- LICENSE
|
84
94
|
- README.md
|
85
95
|
- Rakefile
|
86
|
-
- bin/console
|
87
96
|
- bin/solidus
|
88
97
|
- lib/solidus_cmd.rb
|
89
98
|
- lib/solidus_cmd/extension.rb
|
@@ -104,14 +113,18 @@ files:
|
|
104
113
|
- lib/solidus_cmd/templates/extension/lib/%file_name%.rb.tt
|
105
114
|
- lib/solidus_cmd/templates/extension/lib/%file_name%/engine.rb.tt
|
106
115
|
- lib/solidus_cmd/templates/extension/lib/%file_name%/factories.rb.tt
|
116
|
+
- lib/solidus_cmd/templates/extension/lib/%file_name%/version.rb.tt
|
107
117
|
- lib/solidus_cmd/templates/extension/lib/generators/%file_name%/install/install_generator.rb.tt
|
108
118
|
- lib/solidus_cmd/templates/extension/rspec
|
119
|
+
- lib/solidus_cmd/templates/extension/rubocop.yml
|
109
120
|
- lib/solidus_cmd/templates/extension/spec/spec_helper.rb.tt
|
121
|
+
- lib/solidus_cmd/templates/extension/travis.yml
|
110
122
|
- lib/solidus_cmd/version.rb
|
111
123
|
- solidus_cmd.gemspec
|
112
|
-
|
124
|
+
- spec/spec_helper.rb
|
125
|
+
homepage: http://solidus.io
|
113
126
|
licenses:
|
114
|
-
-
|
127
|
+
- BSD-3-Clause
|
115
128
|
metadata: {}
|
116
129
|
post_install_message:
|
117
130
|
rdoc_options: []
|
@@ -129,8 +142,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
142
|
version: '0'
|
130
143
|
requirements: []
|
131
144
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.5.1
|
133
146
|
signing_key:
|
134
147
|
specification_version: 4
|
135
|
-
summary: Solidus command line utility
|
148
|
+
summary: Solidus command line utility
|
136
149
|
test_files: []
|
data/.rspec
DELETED
data/.travis.yml
DELETED
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# Contributor Code of Conduct
|
2
|
-
|
3
|
-
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
-
|
5
|
-
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
-
|
7
|
-
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
-
|
9
|
-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
-
|
11
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
-
|
13
|
-
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2015 Peter Berkenbosch
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "solidus_cmd"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|