shopify_cli 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/Gemfile.lock +21 -15
- data/README.md +3 -1
- data/lib/shopify_cli.rb +1 -1
- data/shopify_cli.gemspec +4 -3
- data/test/cli_test.rb +1 -2
- data/test/test_helper.rb +2 -8
- metadata +33 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3f41eed2f27294a329e6f1ad6642af204d34de6
|
4
|
+
data.tar.gz: f60fc9ff7d67eb4ab3a6063b95a01d0adb2c0142
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca34c5e48d3c8d0d400dddbd5b337c3b22e23b4918014dc74ac3c96d273396de5b414de29b129ab76ec7a5323cf090ac847044e27f57e6e6645f91dbeb99933d
|
7
|
+
data.tar.gz: 747e593e948f79ebae834c621f349365f9e06cd17854670509a01f698bf6b96fcc38f6d944407bdc76b0e132ff295bace32aa8bfa3765b2918548c812b77cb76
|
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
shopify_cli (1.0.
|
4
|
+
shopify_cli (1.0.1)
|
5
|
+
activemodel (>= 4.2.2)
|
6
|
+
activesupport (>= 4.2.2)
|
5
7
|
pry (>= 0.9.12.6)
|
6
8
|
shopify_api
|
7
9
|
thor (~> 0.18.1)
|
@@ -9,29 +11,29 @@ PATH
|
|
9
11
|
GEM
|
10
12
|
remote: https://rubygems.org/
|
11
13
|
specs:
|
12
|
-
activemodel (4.
|
13
|
-
activesupport (= 4.
|
14
|
-
builder (~> 3.1
|
14
|
+
activemodel (4.2.2)
|
15
|
+
activesupport (= 4.2.2)
|
16
|
+
builder (~> 3.1)
|
15
17
|
activeresource (4.0.0)
|
16
18
|
activemodel (~> 4.0)
|
17
19
|
activesupport (~> 4.0)
|
18
20
|
rails-observers (~> 0.1.1)
|
19
|
-
activesupport (4.
|
20
|
-
i18n (~> 0.
|
21
|
-
|
22
|
-
|
23
|
-
thread_safe (~> 0.
|
24
|
-
tzinfo (~>
|
25
|
-
builder (3.
|
21
|
+
activesupport (4.2.2)
|
22
|
+
i18n (~> 0.7)
|
23
|
+
json (~> 1.7, >= 1.7.7)
|
24
|
+
minitest (~> 5.1)
|
25
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
26
|
+
tzinfo (~> 1.1)
|
27
|
+
builder (3.2.2)
|
26
28
|
coderay (1.1.0)
|
27
29
|
fakeweb (1.3.0)
|
28
30
|
i18n (0.7.0)
|
31
|
+
json (1.8.3)
|
29
32
|
metaclass (0.0.4)
|
30
33
|
method_source (0.8.2)
|
31
|
-
minitest (
|
34
|
+
minitest (5.7.0)
|
32
35
|
mocha (1.1.0)
|
33
36
|
metaclass (~> 0.0.1)
|
34
|
-
multi_json (1.11.0)
|
35
37
|
pry (0.10.1)
|
36
38
|
coderay (~> 1.1.0)
|
37
39
|
method_source (~> 0.8.1)
|
@@ -46,14 +48,18 @@ GEM
|
|
46
48
|
slop (3.6.0)
|
47
49
|
thor (0.18.1)
|
48
50
|
thread_safe (0.3.5)
|
49
|
-
tzinfo (
|
51
|
+
tzinfo (1.2.2)
|
52
|
+
thread_safe (~> 0.1)
|
50
53
|
|
51
54
|
PLATFORMS
|
52
55
|
ruby
|
53
56
|
|
54
57
|
DEPENDENCIES
|
55
58
|
fakeweb
|
56
|
-
minitest (~>
|
59
|
+
minitest (~> 5.0)
|
57
60
|
mocha (>= 0.9.8)
|
58
61
|
rake
|
59
62
|
shopify_cli!
|
63
|
+
|
64
|
+
BUNDLED WITH
|
65
|
+
1.10.2
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
#shopify_cli
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/Shopify/shopify_cli.svg?branch=master)](https://travis-ci.org/Shopify/shopify_cli)
|
2
4
|
|
3
5
|
This package also includes the ``shopify-cli`` executable to make it easy to open up an interactive console to use the API with a shop.
|
4
6
|
|
data/lib/shopify_cli.rb
CHANGED
data/shopify_cli.gemspec
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
1
|
$:.push File.expand_path("../lib", __FILE__)
|
3
2
|
require 'shopify_cli'
|
4
3
|
|
@@ -24,12 +23,14 @@ Gem::Specification.new do |s|
|
|
24
23
|
s.license = 'MIT'
|
25
24
|
|
26
25
|
s.add_dependency("shopify_api")
|
26
|
+
s.add_dependency("activemodel", ">= 4.2.2")
|
27
|
+
s.add_dependency("activesupport", ">= 4.2.2")
|
27
28
|
s.add_dependency("thor", "~> 0.18.1")
|
28
29
|
s.add_dependency("pry", ">= 0.9.12.6")
|
29
30
|
|
30
31
|
dev_dependencies = [['mocha', '>= 0.9.8'],
|
31
|
-
['fakeweb'],
|
32
|
-
['minitest', '~>
|
32
|
+
['fakeweb'],
|
33
|
+
['minitest', '~> 5.0'],
|
33
34
|
['rake']
|
34
35
|
]
|
35
36
|
|
data/test/cli_test.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
require 'shopify_cli/cli'
|
3
3
|
require 'fileutils'
|
4
|
-
|
5
|
-
class CliTest < Test::Unit::TestCase
|
4
|
+
class CliTest < Minitest::Test
|
6
5
|
HOME_DIR = File.expand_path(File.dirname(__FILE__))
|
7
6
|
TEST_HOME = File.join(HOME_DIR, 'files', 'home')
|
8
7
|
CONFIG_DIR = File.join(TEST_HOME, '.shopify', 'shops')
|
data/test/test_helper.rb
CHANGED
@@ -10,17 +10,11 @@ require 'shopify_api'
|
|
10
10
|
|
11
11
|
FakeWeb.allow_net_connect = false
|
12
12
|
|
13
|
-
module Test
|
14
|
-
module Unit
|
15
|
-
class TestCase < MiniTest::Unit::TestCase
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
13
|
# setup ShopifyAPI with fake api_key and secret
|
20
14
|
|
21
|
-
class Test
|
15
|
+
class Minitest::Test
|
22
16
|
def self.test(string, &block)
|
23
|
-
define_method("
|
17
|
+
define_method("test_#{string}", &block)
|
24
18
|
end
|
25
19
|
|
26
20
|
def self.should(string, &block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shopify_api
|
@@ -24,6 +24,34 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activemodel
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 4.2.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 4.2.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activesupport
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 4.2.2
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 4.2.2
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: thor
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +114,14 @@ dependencies:
|
|
86
114
|
requirements:
|
87
115
|
- - "~>"
|
88
116
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
117
|
+
version: '5.0'
|
90
118
|
type: :development
|
91
119
|
prerelease: false
|
92
120
|
version_requirements: !ruby/object:Gem::Requirement
|
93
121
|
requirements:
|
94
122
|
- - "~>"
|
95
123
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
124
|
+
version: '5.0'
|
97
125
|
- !ruby/object:Gem::Dependency
|
98
126
|
name: rake
|
99
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,6 +145,7 @@ extra_rdoc_files:
|
|
117
145
|
- LICENSE
|
118
146
|
- README.md
|
119
147
|
files:
|
148
|
+
- ".travis.yml"
|
120
149
|
- Gemfile
|
121
150
|
- Gemfile.lock
|
122
151
|
- LICENSE
|