bundly 0.1.0 → 0.2.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
  SHA1:
3
- metadata.gz: 777c942427a322c74a8987b54d470bf3a7056a1b
4
- data.tar.gz: d8c1bca8e92754b296d6264f842aac2eda642a64
3
+ metadata.gz: 445bf43e06b00c99dd69c3cf5662e77976f2dac0
4
+ data.tar.gz: 3d7d06aceee0040dc2da51d0c8c750afa6662901
5
5
  SHA512:
6
- metadata.gz: 747229560f5226582ee118bbc55cbbabff3e1093cfaf3bd4b63c713b074afdddccfddcf1fd6e04b9a2d5653066611f65c45a090429364371ddadf8d3e14522d4
7
- data.tar.gz: e9526e5b6f9ee4db7ef47f5488d18c9b3077d69454cb741200f8917eb6b71baaacbac296d20f77c8f739c66726c51ef8ba3217b0531aa1567a6f26cca3962914
6
+ metadata.gz: ca92206ae984a4a3e7004a30071ed562ae4b768392c1485001467bd48f8304dbc35fad75da6bffdc9fb191a5d65eea143818c235095ee86819d77fbc83e4eb89
7
+ data.tar.gz: 7e404334b6fd94830de3007f78e7e9e5fdf9026552a2dab1e939a7d752ef6ef915cf45b63424c2d90ad8d49a6dca4ca4a9889327e918656cbfe758368d05ad43
data/README.md CHANGED
@@ -32,6 +32,13 @@ Put some dependencies in `gems.yaml` file.
32
32
  tag: 0.2.3
33
33
  ```
34
34
 
35
+ Put initialization code in your Gemfile.
36
+
37
+ ```rb
38
+ require_relative "lib/bundly.rb"
39
+ gems "gems.yaml"
40
+ ```
41
+
35
42
  And then install.
36
43
 
37
44
  ```
@@ -10,6 +10,12 @@ module Bundly
10
10
  template = Pathname(__dir__) + "template.rb.erb"
11
11
  init_script = Pathname(options[:init])
12
12
 
13
+ unless init_script.parent.directory?
14
+ puts "No directory for init script: #{init_script}"
15
+ puts "> mkdir #{init_script.parent}"
16
+ exit
17
+ end
18
+
13
19
  init_script.open("w") do |io|
14
20
  io.write Erubis::Eruby.new(template.read).result
15
21
  end
@@ -10,8 +10,9 @@ module Bundly
10
10
  git = gem["git"]
11
11
  branch = gem["branch"]
12
12
  tag = gem["tag"]
13
+ require = gem["require"]
13
14
 
14
- gem name, version, git: git, branch: branch, tag: tag
15
+ gem name, version, git: git, branch: branch, tag: tag, require: require
15
16
  end
16
17
  end
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module Bundly
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-28 00:00:00.000000000 Z
11
+ date: 2017-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.5.1
127
+ rubygems_version: 2.6.8
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Bundle gems from YAML file