takelage 0.6.0 → 0.7.0

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: 27629dd8d5c67686cf07b09fa4d51e4293f230df5e534d3c8b9a7d0c6225713e
4
- data.tar.gz: a44fcab58e4f2cc456e527eeee0adc8a8c2083ea7d010a94a1e01b7183ddda55
3
+ metadata.gz: c150c25080b83185a833479404ae543822e6572446f0179f54c38b6a2714a8c9
4
+ data.tar.gz: 52a49cdb0fa91a404124fb901ffd93f5567e3b5b246372eb7a7a4bece9564c79
5
5
  SHA512:
6
- metadata.gz: 4d36a0ac626f26b58661d3f3122bcee12eabcadac144fb8b25ffc49c6ab0042381f9523c9ff4c4160444c69565d32bd14fd4c0d4c3ff7cf74a0f83a81ec6e294
7
- data.tar.gz: 6410f138c0d2c934d3f76956db801ddd00c5845be5092b1dd1ff83f0d5c89e61062b88714909393bfda7bc1911170cf4913ef8e5e38605ff7472f500a375c75c
6
+ metadata.gz: 99e95484f718a104d966d2897b9f294639c597c632905ef490157213cedc6a3ab07930960440169fcbbbf21fdc9532e656909a747f446fd1c83fe07b37b81fda
7
+ data.tar.gz: ae75f6e6f96c00fa1520f32da193543eaeccea2885acec7dbd24a921917688cc771d9871606620883d92afe7cc2244e76f18536d8b74808cdb507274fa78e1a3
@@ -126,6 +126,7 @@ module BitClipboardModule
126
126
  cmd_bit_import_cid = config.active['bit_import_cid'] % {cid: cid, dir: dir}
127
127
  run cmd_bit_import_cid
128
128
 
129
+ _handle_bitignore
129
130
  _remove_bit_artifacts
130
131
 
131
132
  log.info "Pasted bit component \"#{cid}\" " +
@@ -157,6 +158,7 @@ module BitClipboardModule
157
158
  cmd_bit_checkout_all = config.active['bit_checkout_all']
158
159
  run cmd_bit_checkout_all
159
160
 
161
+ _handle_bitignore
160
162
  _remove_bit_artifacts
161
163
 
162
164
  log.info "Pulled bit components"
@@ -193,6 +195,30 @@ module BitClipboardModule
193
195
  true
194
196
  end
195
197
 
198
+ # Genereate .gitignore if bitignore is present
199
+ def _handle_bitignore
200
+ log.debug "Handling bitgnore files"
201
+
202
+ # find all bitgnore files
203
+ Dir.glob("./**/bitignore").each do |file|
204
+
205
+ log.debug file
206
+
207
+ # get directory of bitignore file
208
+ dir = File.dirname file
209
+
210
+ # build gitignore filepath
211
+ gitignore = "#{dir}/.gitignore"
212
+
213
+ log.debug gitignore
214
+
215
+ unless File.exist? gitignore
216
+ log.debug "Creating \".gitignore\" in \"#{dir}\""
217
+ File.open(gitignore, 'w') { |gitignore| gitignore.write('*') }
218
+ end
219
+ end
220
+ end
221
+
196
222
  # Generate bit component ID.
197
223
  def _id(name)
198
224
  id = ''
@@ -219,6 +245,8 @@ module BitClipboardModule
219
245
 
220
246
  # Remove bit artifacts.
221
247
  def _remove_bit_artifacts
248
+ log.debug "Removing bit artifacts"
249
+
222
250
  _remove_node_modules
223
251
  _remove_index_bit
224
252
  _remove_package_json
@@ -4,8 +4,8 @@ bit_checkout_all: 'bit checkout --ignore-package-json --skip-update -i --all lat
4
4
  bit_dev: 'takelage'
5
5
  bit_export_to_scope: 'bit export --skip-update %{scope}'
6
6
  bit_export_all: 'bit export --skip-update'
7
- bit_import_cid: 'bit import --ignore-package-json --skip-update -p %{dir} %{cid}'
8
7
  bit_import_all: 'bit import --skip-update --ignore-package-json -m manual'
8
+ bit_import_cid: 'bit import --ignore-package-json --skip-update -p %{dir} %{cid}'
9
9
  bit_list_remotes: 'bit remote --skip-update'
10
10
  bit_list_scope: 'bit list --skip-update --json %{scope}'
11
11
  bit_remote: ''
data/lib/takelage/version CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.7.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: takelage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geospin