repl_rake 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 02e4065b287e60162d495541e0e048a4f0c4e7af
4
- data.tar.gz: ee17901f2e34dee921e0099314ce5d8d281b450e
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDViNzRmM2ViMGQzN2QzYWYyYTcwOTllMjg0ZTNhOWNkOTQ3ZWE5Ng==
5
+ data.tar.gz: !binary |-
6
+ MDVjYjgzMGZlMGY1MmRjNjM2YmRjMDI4M2VjMWI5ZDQ5NTM2Y2M2YQ==
5
7
  SHA512:
6
- metadata.gz: 0695e3e782346e115bad748ceab07fdcfa4ac16dd28295dfa91e0cdd3b0894858744a93e5ec2a7de3a06098895b8c201f687c70287710aa2480fdd5fe2d8af51
7
- data.tar.gz: 8eb53b9090ca22c296942df478c8769e2ec24bc5c10a31ccbd741d68b41b72fdaa0763d3d789055cbfcbe11abd643f0d444123693d54c0c3e508227607752e81
8
+ metadata.gz: !binary |-
9
+ ZTQ2MTkxYzk2ZDFjYTAzYjM1NDZiYjNkMTg0Mzg1ZDc0NWM4MTc5OWRmMzQ2
10
+ YTAzZWVlZGFjMTk1MjJjYjQxMzgzZDVjN2M2NWNmODdmNzc2ZWI5ODJkOTZj
11
+ YTdjMmM4MjBkNzc0MDFlYzQ1ODliMjVkMzc4MTFmODRhOTVjYzM=
12
+ data.tar.gz: !binary |-
13
+ MGIwMDUxOTZlMDQ0MTk4YzU1NzU5NWQ4MzAxZWI0MTkyMjIxMDNkYTYzM2Ux
14
+ ZDEzYThmZDE2M2E2Njk2YTNlNTljMTExZDEyNGY4NmI1MTBjY2YxYmVkZmZm
15
+ NTRjYjk1OTA1MmJkZmFjMjY0NGQ0Y2YwYWYyMjUyNzMxYjg4NDk=
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- repl_rake (0.0.1)
4
+ repl_rake (0.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  coderay (1.1.0)
10
10
  method_source (0.8.2)
11
- pry (0.9.12.6)
12
- coderay (~> 1.0)
13
- method_source (~> 0.8)
11
+ pry (0.10.1)
12
+ coderay (~> 1.1.0)
13
+ method_source (~> 0.8.1)
14
14
  slop (~> 3.4)
15
- rake (10.1.0)
16
- slop (3.4.7)
15
+ rake (10.3.2)
16
+ slop (3.6.0)
17
17
 
18
18
  PLATFORMS
19
19
  ruby
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ReplRake
2
2
 
3
- TODO: Write a gem description
3
+ Putting Repl Driven Development in your hands.
4
4
 
5
5
  ## Installation
6
6
 
@@ -23,6 +23,11 @@ Then in gem folder add this to Rakefile
23
23
  require 'repl_rake'
24
24
  ReplRake.setup
25
25
 
26
+ Use the command
27
+ rake console
28
+
29
+ Any ruby code in `.repl_rake.rb` will be loaded into you pry session after the base gem is required.
30
+
26
31
  ## Credits
27
32
 
28
33
  Credits:
data/Rakefile CHANGED
@@ -1 +1,3 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'repl_rake'
3
+ ReplRake.setup
@@ -3,6 +3,12 @@ require 'rake'
3
3
 
4
4
  module ReplRake
5
5
 
6
+ def self.load_config
7
+ file = ".repl_rake.rb"
8
+ return unless File.exists?(file)
9
+ load file
10
+ end
11
+
6
12
  def self.setup
7
13
  gem_spec = Gem::Specification.new(Dir["*.gemspec"].first)
8
14
  $calling_gem_name = gem_spec.name.split('.').first
@@ -5,5 +5,6 @@ task :console do
5
5
  # TODO: maybe dynamically set it in Rakefile and then retrieve from ENV?
6
6
  require "#{$calling_gem_name}"
7
7
  ARGV.clear
8
+ ReplRake.load_config
8
9
  IRB.start
9
10
  end
@@ -4,5 +4,6 @@ task :console do
4
4
  # find the current folder and the matching gemspec
5
5
  require "#{$calling_gem_name}"
6
6
  ARGV.clear
7
+ ReplRake.load_config
7
8
  Pry.start
8
9
  end
@@ -1,3 +1,3 @@
1
1
  module ReplRake
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repl_rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zander Hill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-21 00:00:00.000000000 Z
11
+ date: 2014-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description:
@@ -59,7 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - ".gitignore"
62
+ - .gitignore
63
63
  - Gemfile
64
64
  - Gemfile.lock
65
65
  - LICENSE
@@ -81,17 +81,17 @@ require_paths:
81
81
  - lib
82
82
  required_ruby_version: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - ">="
84
+ - - ! '>='
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - ">="
89
+ - - ! '>='
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.2.0
94
+ rubygems_version: 2.2.2
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Creates a `rake console` task with either Pry or Irb