wip 0.2.0 → 0.3.0.pre1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6dd516ea1e756f659be1fc4b677fe01eee9a3905
4
+ data.tar.gz: 223dc7506beb5aee21f86d5266bf774222ab3c1f
5
+ SHA512:
6
+ metadata.gz: e36d8f002bb3d8fa88cc2f279eac3ef1ecd1022fb3c1af1eab269615a315205fa87273fae8f585eab8a494d604424573d3648c1d71e088615d25511e18bdcec5
7
+ data.tar.gz: dc7de0d5e6666d20ff7f601020f07fa66f0a5a307d2b1570f73c2accd45f44fcd3db18aec0882a093371cb6d2bc20ae3c22c1c8686291c0a770afc844f89d3fc
data/.wiprc CHANGED
@@ -1,3 +1,8 @@
1
- echo 'working on wip...'
1
+ #!/usr/env ruby
2
2
 
3
- rvm use 1.8.7
3
+ puts "loading 'wip'..."
4
+
5
+ # `wip exec example`
6
+ def example
7
+ puts "executing 'example'"
8
+ end
@@ -1,7 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- BASH_COMMANDS = [:show]
4
-
5
3
  begin
6
4
  require 'wip'
7
5
  rescue LoadError
@@ -15,6 +15,7 @@ Gem.configuration
15
15
  module WIP
16
16
  module CLI
17
17
  autoload :Base, 'wip/cli/base'
18
+ autoload :Exec, 'wip/cli/exec'
18
19
  autoload :Index, 'wip/cli/index'
19
20
  autoload :Show, 'wip/cli/show'
20
21
 
@@ -48,6 +49,17 @@ module WIP
48
49
  end
49
50
  end
50
51
 
52
+ desc "back", "Move to and activate most recent 'work'"
53
+ def back(*)
54
+ WIP.ui.info ENV['WIP_BACK']
55
+ end
56
+
57
+ desc "exec", "Execute commands specified within .wiprc files"
58
+ def exec(*args)
59
+ @_exec ||= WIP::CLI::Exec.new
60
+ WIP.ui.info @_exec.get(*args)
61
+ end
62
+
51
63
  desc "index", "List all indexed 'works'"
52
64
  method_option "path", :type => :string,
53
65
  :banner => "Specify a path to index",
@@ -67,11 +79,6 @@ module WIP
67
79
  @_show ||= WIP::CLI::Show.new(path || '.')
68
80
  WIP.ui.info @_show.get
69
81
  end
70
-
71
- desc "back", "Move to and activate most recent 'work'"
72
- def back(*)
73
- WIP.ui.info ENV['WIP_BACK']
74
- end
75
82
  end
76
83
  end
77
84
  end
@@ -0,0 +1,17 @@
1
+ module WIP
2
+ module CLI
3
+ class Exec # < Base
4
+ def initialize(*)
5
+ @_executor = Module.new
6
+ @_executor.module_exec { load('.wiprc') }
7
+ end
8
+
9
+ def get(*args)
10
+ command = args.shift.intern
11
+ @_executor.send(command, *args)
12
+ rescue NoMethodError
13
+ puts "[FAIL] '#{command}' is not defined (add it to ./.wiprc)"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module WIP
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0.pre1"
3
3
  end
metadata CHANGED
@@ -1,66 +1,54 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: wip
3
- version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 0
10
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0.pre1
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Corey Innis
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-03-06 00:00:00 +08:00
19
- default_executable: wip
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
11
+ date: 2014-08-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
22
14
  name: wip-bootstrap
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - "="
28
- - !ruby/object:Gem::Version
29
- hash: 13
30
- segments:
31
- - 1
32
- - 1
33
- version: "1.1"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: '1.1'
34
20
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: bundler
38
21
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 1
47
- - 0
48
- - 10
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: '1.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
49
33
  version: 1.0.10
50
34
  type: :development
51
- version_requirements: *id002
52
- description: "'wip' provides tools to assist with the creation/maintenance of and collaboration on software projects"
53
- email:
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.0.10
41
+ description: "'wip' provides tools to assist with the creation/maintenance of and
42
+ collaboration on software projects"
43
+ email:
54
44
  - support+wip@coolerator.net
55
- executables:
45
+ executables:
56
46
  - wip-ruby
57
47
  extensions: []
58
-
59
48
  extra_rdoc_files: []
60
-
61
- files:
62
- - .gitignore
63
- - .wiprc
49
+ files:
50
+ - ".gitignore"
51
+ - ".wiprc"
64
52
  - Gemfile
65
53
  - README.mkd
66
54
  - Rakefile
@@ -70,6 +58,7 @@ files:
70
58
  - lib/wip.rb
71
59
  - lib/wip/cli.rb
72
60
  - lib/wip/cli/base.rb
61
+ - lib/wip/cli/exec.rb
73
62
  - lib/wip/cli/index.rb
74
63
  - lib/wip/cli/show.rb
75
64
  - lib/wip/ui.rb
@@ -100,67 +89,34 @@ files:
100
89
  - lib/wip/vendor/thor/version.rb
101
90
  - lib/wip/version.rb
102
91
  - wip.gemspec
103
- has_rdoc: true
104
92
  homepage: http://github.com/coreyti/wip
105
93
  licenses: []
106
-
107
- post_install_message: |
108
-
109
- Thank you for installing wip v0.2.0
110
- ------------------------------------------------------------------------------
111
-
112
- Please Note:
113
-
114
- `wip` (for now) depends on `wip-bootstrap`. If you didn't already have the
115
- necessary version of `wip-bootstrap` installed, you should see a short banner
116
- just above this, indicating that you need to run
117
-
118
- wip-bootstrap
119
-
120
- If so, please run that now and then `source ~/.wiprc` to get set up.
121
-
122
- `wip-bootstrap` shouldn't have to be updated too often, so this step will be
123
- infrequent, even when you update `wip` (proper).
124
-
125
-
126
- For more info on `wip`, see <http://github.com/coreyti/wip>
127
-
128
-
129
- Feedback, complaints, suggestions, etc?
130
-
131
- * email me:
132
- support+wip@coolerator.net
133
-
134
- ------------------------------------------------------------------------------
135
-
94
+ metadata: {}
95
+ post_install_message: "\nThank you for installing wip v0.3.0.pre1\n------------------------------------------------------------------------------\n\nPlease
96
+ Note:\n\n`wip` (for now) depends on `wip-bootstrap`. If you didn't already have
97
+ the\nnecessary version of `wip-bootstrap` installed, you should see a short banner\njust
98
+ above this, indicating that you need to run\n\n wip-bootstrap\n\nIf so, please
99
+ run that now and then `source ~/.wiprc` to get set up.\n\n`wip-bootstrap` shouldn't
100
+ have to be updated too often, so this step will be\ninfrequent, even when you update
101
+ `wip` (proper).\n\n\nFor more info on `wip`, see <http://github.com/coreyti/wip>\n\n\nFeedback,
102
+ complaints, suggestions, etc?\n\n * email me: \n support+wip@coolerator.net\n\n------------------------------------------------------------------------------\n"
136
103
  rdoc_options: []
137
-
138
- require_paths:
104
+ require_paths:
139
105
  - lib
140
- required_ruby_version: !ruby/object:Gem::Requirement
141
- none: false
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- hash: 3
146
- segments:
147
- - 0
148
- version: "0"
149
- required_rubygems_version: !ruby/object:Gem::Requirement
150
- none: false
151
- requirements:
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ requirements:
152
108
  - - ">="
153
- - !ruby/object:Gem::Version
154
- hash: 3
155
- segments:
156
- - 0
157
- version: "0"
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">"
114
+ - !ruby/object:Gem::Version
115
+ version: 1.3.1
158
116
  requirements: []
159
-
160
117
  rubyforge_project: wip
161
- rubygems_version: 1.6.1
118
+ rubygems_version: 2.2.2
162
119
  signing_key:
163
- specification_version: 3
120
+ specification_version: 4
164
121
  summary: "'wip': streamlined work-in-progress projects"
165
122
  test_files: []
166
-