bamboo_rat 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b93f52070e92826422a59a27005911253d5569bbcda87ba8dcdb57120e3186f
4
- data.tar.gz: 589960d418359cb8f4a7815f871120bc1a6cf13cd8e57d0bd53ebc81cf2bb5dd
3
+ metadata.gz: 5b8c2d6dca6ecc3c8c3d1876ee3a5ba848d25957efcf76568306c687122dcf36
4
+ data.tar.gz: 997fbc11dd35c01d7f26f81e390cc06cf93a02e811c8b12b1ef4bc1e06ba814a
5
5
  SHA512:
6
- metadata.gz: cb361f51590d0c0c1cef97c94b2a96a025054dec63832e3a438a0b9909951549876e0b94f6a29ab43b86918e2295e65820b7ae099ab317185b25bb6edb3fa463
7
- data.tar.gz: f58b496bb43f30b3db2156ee1f0e924777049820c3d12d69ddb6f8221762f82a0dcfbcb93977175888b7103d343a52d8bbe9235e0e521052f7853f4ff7c547f0
6
+ metadata.gz: f2cc7531605ee2f93063bfa44ef29d86b465715122cb51bd82af618d0bca134d8dbd04be363727d4af8e0ede3a35dbaf6cbc88eba0a1993307d0084b2c7a1d79
7
+ data.tar.gz: 9f883d008c91f70b626050d85c07d24298e6fde645f9c76f677da3cd80fdfbbf7ede4e3836f4d5fc6648fef820dafa85fb8956d9dd783adba51be5e26eca5088
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bamboo_rat (0.1.0)
4
+ bamboo_rat (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,9 +1,7 @@
1
- ![](https://ws1.sinaimg.cn/large/006tNbRwgy1fvypth9y9sj30dw09qgle.jpg)
2
1
  # BambooRat
2
+ A CLI Tool for CBRA Project
3
3
 
4
-
5
-
6
- TODO: Delete this and the text above, and describe your gem
4
+ ![](https://ws3.sinaimg.cn/large/006tNbRwgy1fvzojfovwxj30dw09qgle.jpg)
7
5
 
8
6
  ## Installation
9
7
 
@@ -23,7 +21,13 @@ Or install it yourself as:
23
21
 
24
22
  ## Usage
25
23
 
26
- TODO: Write usage instructions here
24
+ ```
25
+ Commands:
26
+ bamboo_rat diff [PATH] # Show changed components.
27
+ bamboo_rat help [COMMAND] # Describe available commands or one specific command
28
+ bamboo_rat ls [PATH] # Show components list.
29
+ ```
30
+
27
31
 
28
32
  ## Development
29
33
 
@@ -13,6 +13,8 @@ module BambooRat
13
13
 
14
14
  def formatted_data
15
15
  return { diff: @diff_components }.to_json if @format == 'simple'
16
+ return @diff_components[:js].join(',') if @format == 'js'
17
+ return @diff_components[:ruby].join(',' if @format == 'ruby'
16
18
  {
17
19
  js_components: @tree.js_components.map(&:path),
18
20
  ruby_components: @tree.ruby_components.map(&:path),
@@ -1,3 +1,3 @@
1
1
  module BambooRat
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bamboo_rat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Madao