spree_cmd 3.0.7 → 3.0.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8733aec299c6f98c5fa0eed5d4f7bbcbfcefc94c
|
4
|
+
data.tar.gz: aec4179a122c57a6e3df53ac2fb5d19059f039bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9e212430b9577508c4e84eaa12874a424621f4eb7ee8ecc0e3a3995b14f4202d1312556b58f5db0aa0e93598497f390daa5183a74d0ed7841e9c555d8a926a3
|
7
|
+
data.tar.gz: 69651cb7f6751981962403793de93559b3f6ed9b04988c2c3fb59eddab72f8e58fa8661f9a697ad0a6fad6f992487b5ec9f02380ba5e834ab8e1c8626d0fb613
|
data/lib/spree_cmd/extension.rb
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
module SpreeCmd
|
2
|
-
|
3
2
|
class Extension < Thor::Group
|
4
3
|
include Thor::Actions
|
5
4
|
|
6
5
|
desc "builds a spree extension"
|
7
|
-
argument :file_name, :
|
6
|
+
argument :file_name, type: :string, desc: 'rails app_path', default: '.'
|
8
7
|
|
9
8
|
source_root File.expand_path('../templates/extension', __FILE__)
|
10
9
|
|
@@ -30,16 +29,14 @@ module SpreeCmd
|
|
30
29
|
end
|
31
30
|
|
32
31
|
def final_banner
|
33
|
-
say %
|
32
|
+
say %{
|
34
33
|
#{'*' * 80}
|
35
34
|
|
36
|
-
Your extension has been generated with a gemspec dependency on Spree #{
|
35
|
+
Your extension has been generated with a gemspec dependency on Spree #{Spree.version}.
|
37
36
|
|
38
37
|
Please update the Versionfile to designate compatibility with different versions of Spree.
|
39
38
|
See http://spreecommerce.com/documentation/extensions.html#versionfile
|
40
39
|
|
41
|
-
Consider listing your extension in the official extension registry http://spreecommerce.com/extensions
|
42
|
-
|
43
40
|
#{'*' * 80}
|
44
41
|
}
|
45
42
|
end
|
@@ -49,16 +46,11 @@ module SpreeCmd
|
|
49
46
|
Thor::Util.camel_case file_name
|
50
47
|
end
|
51
48
|
|
52
|
-
def spree_version
|
53
|
-
'3.0.7'
|
54
|
-
end
|
55
|
-
|
56
49
|
def use_prefix(prefix)
|
57
50
|
unless file_name =~ /^#{prefix}/
|
58
51
|
@file_name = prefix + Thor::Util.snake_case(file_name)
|
59
52
|
end
|
60
53
|
end
|
61
54
|
end
|
62
|
-
|
63
55
|
end
|
64
56
|
end
|
@@ -3,24 +3,31 @@
|
|
3
3
|
|
4
4
|
Introduction goes here.
|
5
5
|
|
6
|
-
Installation
|
7
|
-
------------
|
6
|
+
## Installation
|
8
7
|
|
9
|
-
Add
|
8
|
+
1. Add this extension to your Gemfile with this line:
|
9
|
+
```ruby
|
10
|
+
gem '<%= file_name %>', github: '[your-github-handle]/<%= file_name %>', branch: 'X-X-stable'
|
11
|
+
```
|
10
12
|
|
11
|
-
|
12
|
-
|
13
|
-
```
|
13
|
+
The `branch` option is important: it must match the version of Spree you're using.
|
14
|
+
For example, use `3-1-stable` if you're using Spree `3-1-stable` or any `3.1.x` version.
|
14
15
|
|
15
|
-
|
16
|
+
2. Install the gem using Bundler:
|
17
|
+
```ruby
|
18
|
+
bundle install
|
19
|
+
```
|
16
20
|
|
17
|
-
|
18
|
-
|
19
|
-
bundle exec rails g <%= file_name %>:install
|
20
|
-
```
|
21
|
+
3. Copy & run migrations
|
22
|
+
```ruby
|
23
|
+
bundle exec rails g <%= file_name %>:install
|
24
|
+
```
|
21
25
|
|
22
|
-
|
23
|
-
|
26
|
+
4. Restart your server
|
27
|
+
|
28
|
+
If your server was running, restart it so that it can find the assets properly.
|
29
|
+
|
30
|
+
## Testing
|
24
31
|
|
25
32
|
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`.
|
26
33
|
|
@@ -36,4 +43,11 @@ Simply add this require statement to your spec_helper:
|
|
36
43
|
require '<%= file_name %>/factories'
|
37
44
|
```
|
38
45
|
|
46
|
+
|
47
|
+
## Contributing
|
48
|
+
|
49
|
+
If you'd like to contribute, please take a look at the
|
50
|
+
[instructions](CONTRIBUTING.md) for installing dependencies and crafting a good
|
51
|
+
pull request.
|
52
|
+
|
39
53
|
Copyright (c) <%= Time.now.year %> [name of extension creator], released under the New BSD License
|
@@ -2,29 +2,30 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.platform = Gem::Platform::RUBY
|
4
4
|
s.name = '<%= file_name %>'
|
5
|
-
s.version = '<%=
|
5
|
+
s.version = '<%= Spree.version %>'
|
6
6
|
s.summary = 'TODO: Add gem summary here'
|
7
7
|
s.description = 'TODO: Add (optional) gem description here'
|
8
|
-
s.required_ruby_version = '>= 2.
|
8
|
+
s.required_ruby_version = '>= 2.1.0'
|
9
9
|
|
10
10
|
# s.author = 'You'
|
11
11
|
# s.email = 'you@example.com'
|
12
12
|
# s.homepage = 'http://www.spreecommerce.com'
|
13
|
+
s.license = 'BSD-3'
|
13
14
|
|
14
|
-
#s.files = `git ls-files`.split("\n")
|
15
|
-
#s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
15
|
+
# s.files = `git ls-files`.split("\n")
|
16
|
+
# s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
17
|
s.require_path = 'lib'
|
17
18
|
s.requirements << 'none'
|
18
19
|
|
19
|
-
s.add_dependency 'spree_core', '~> <%=
|
20
|
+
s.add_dependency 'spree_core', '~> <%= Spree.version %>'
|
20
21
|
|
21
|
-
s.add_development_dependency 'capybara', '~> 2.
|
22
|
+
s.add_development_dependency 'capybara', '~> 2.6'
|
22
23
|
s.add_development_dependency 'coffee-rails'
|
23
24
|
s.add_development_dependency 'database_cleaner'
|
24
25
|
s.add_development_dependency 'factory_girl', '~> 4.5'
|
25
26
|
s.add_development_dependency 'ffaker'
|
26
|
-
s.add_development_dependency 'rspec-rails',
|
27
|
-
s.add_development_dependency 'sass-rails', '~> 5.0.0
|
27
|
+
s.add_development_dependency 'rspec-rails', '~> 3.4'
|
28
|
+
s.add_development_dependency 'sass-rails', '~> 5.0.0'
|
28
29
|
s.add_development_dependency 'selenium-webdriver'
|
29
30
|
s.add_development_dependency 'simplecov'
|
30
31
|
s.add_development_dependency 'sqlite3'
|
data/spree_cmd.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
version
|
3
|
+
require_relative '../core/lib/spree/core/version.rb'
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "spree_cmd"
|
7
|
-
s.version = version
|
7
|
+
s.version = Spree.version
|
8
8
|
s.authors = ["Chris Mar"]
|
9
9
|
s.email = ["chris@spreecommerce.com"]
|
10
10
|
s.homepage = "http://spreecommerce.com"
|
11
|
-
s.license =
|
11
|
+
s.license = 'BSD-3'
|
12
12
|
s.summary = %q{Spree Commerce command line utility}
|
13
13
|
s.description = %q{tools to create new Spree stores and extensions}
|
14
14
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_cmd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Mar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|