blockspring-cli 0.0.8 → 0.0.9
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 +4 -4
- data/.DS_Store +0 -0
- data/lib/blockspring/cli/command/block.rb +14 -5
- data/lib/blockspring/cli/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db5beb5a65470e420b59d1e7aec32e116ad5c254
|
4
|
+
data.tar.gz: 12bcb0cb001032d1bea981f9a0c74629feb52e1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b8a3d0d14ca9c1c9e6742644988dc1180bfa9c404fadea1a43717f58568f42c7a92a61d49f2df4fb847d52d686e7731619c4d94d0e3c687f8550d3b3cac3cdf
|
7
|
+
data.tar.gz: 9a106fff42463f833d7026662f54421f119654b06a37a7733d2515930f7d58775942c8df552846092d323f25d81b7805a4cf3597e7ec6e8791ec481610c19005
|
data/.DS_Store
ADDED
Binary file
|
@@ -65,13 +65,22 @@ class Blockspring::CLI::Command::Block < Blockspring::CLI::Command::Base
|
|
65
65
|
def push
|
66
66
|
_user, key = Blockspring::CLI::Auth.get_credentials
|
67
67
|
|
68
|
-
|
69
|
-
|
68
|
+
if not(File.exists?('blockspring.json'))
|
69
|
+
config_json = {
|
70
|
+
'language' => nil
|
71
|
+
}
|
72
|
+
|
73
|
+
# hardcode block.* name. find first one and set that to language.
|
74
|
+
Dir["block.*"].each do |block_file|
|
75
|
+
language_match = block_file.match(/\Ablock\.(.*)/)
|
76
|
+
config_json['language'] = language_match ? language_match.captures[0] : nil
|
77
|
+
break
|
78
|
+
end
|
79
|
+
else
|
80
|
+
config_text = File.read('blockspring.json')
|
81
|
+
config_json = JSON.parse(config_text)
|
70
82
|
end
|
71
83
|
|
72
|
-
config_text = File.read('blockspring.json')
|
73
|
-
config_json = JSON.parse(config_text)
|
74
|
-
|
75
84
|
if config_json['language'].nil?
|
76
85
|
return error('You must declare a language in your blockspring.json file.')
|
77
86
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blockspring-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blockspring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -116,6 +116,7 @@ executables:
|
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
|
+
- ".DS_Store"
|
119
120
|
- ".editorconfig"
|
120
121
|
- ".gitignore"
|
121
122
|
- Gemfile
|