kyanite 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/License.txt +0 -1
  2. data/README.txt +1 -1
  3. data/Rakefile.rb +161 -21
  4. data/lib/kyanite.rb +1 -1
  5. metadata +1 -1
data/License.txt CHANGED
@@ -15,7 +15,6 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
15
15
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16
16
 
17
17
 
18
-
19
18
  == License For ActiveSupport Methods
20
19
 
21
20
  Copyright (c) 2005 David Heinemeier Hansson
data/README.txt CHANGED
@@ -30,7 +30,7 @@ http://creativecommons.org/licenses/by-sa/3.0/de/deed.en
30
30
 
31
31
 
32
32
  == Homepage
33
- http://kyanite.rubyforge.org
33
+ http://kyanite.rubyforge.org
34
34
 
35
35
 
36
36
  == Author
data/Rakefile.rb CHANGED
@@ -9,7 +9,66 @@ require 'kyanite/rake'
9
9
 
10
10
 
11
11
  # ----------------------------------------------------------------------------------------------
12
- # Deploy
12
+ # Local Tasks
13
+ #
14
+
15
+ remove_task 'ridocs'
16
+ remove_task 'rdoc'
17
+ remove_task 'docs'
18
+ remove_task 'audit'
19
+ remove_task 'dcov'
20
+ remove_task 'debug_email'
21
+ remove_task 'debug_gem'
22
+ remove_task 'deploy'
23
+ remove_task 'deps:email'
24
+ remove_task 'install_gem'
25
+ remove_task 'multi'
26
+ remove_task 'newb'
27
+ Dir['tasks/**/*.rake'].each { |t| load t }
28
+
29
+
30
+
31
+ # ----------------------------------------------------------------------------------------------
32
+ # Documentation
33
+ #
34
+ # http://rubeh.tumblr.com/post/27622544/rake-rdoctask-with-all-of-the-options-stubbed-out
35
+ # http://www.java2s.com/Code/Ruby/Language-Basics/RDocoptionsareusedlikethisrdocoptionsnames.htm
36
+
37
+ require 'rdoc/task'
38
+
39
+
40
+ desc "Generate RDoc documentation for Kyanite"
41
+ Rake::RDocTask.new(:docs) do |rd|
42
+ rd.title = "Kyanite"
43
+
44
+ rd.rdoc_dir = 'doc'
45
+ rd.rdoc_files.include('lib/**/*.rb')
46
+ rd.rdoc_files.include('test/**/test_*.rb')
47
+ rd.rdoc_files.include('README.txt', 'License.txt', 'Div')
48
+
49
+ rd.rdoc_files.exclude('lib/kyanite/array/array2')
50
+ rd.rdoc_files.exclude('lib/kyanite/array/matrix2')
51
+ rd.rdoc_files.exclude('lib/kyanite/operation/call_tracker')
52
+ #rd.rdoc_files.exclude('lib/kyanite.rb')
53
+
54
+ #rd.main = 'README.txt'
55
+
56
+
57
+ rd.options += [
58
+ '--tab-width', '4',
59
+ '--main', 'README.txt',
60
+ '--show-hash', # A name of the form #name in a comment is a possible hyperlink to an instance method name. When displayed, the # is removed unless this option is specified.
61
+ '--line-numbers',
62
+ '--all',
63
+ '--charset=utf8'
64
+ ]
65
+
66
+ end
67
+
68
+
69
+
70
+ # ----------------------------------------------------------------------------------------------
71
+ # Hoe
13
72
  #
14
73
  # http://nubyonrails.com/articles/tutorial-publishing-rubygems-with-hoe
15
74
  #
@@ -25,49 +84,130 @@ $hoe = Hoe.spec 'kyanite' do
25
84
  extra_deps << ['facets', '>= 2.9.3']
26
85
  extra_deps << ['rubytree', '>= 0.8.3']
27
86
 
28
-
29
-
30
-
31
-
87
+
32
88
 
33
89
  end
34
90
 
35
91
 
92
+ # -------------------------------------------------------------------------------------------------------
93
+ # publish
94
+ #
36
95
 
96
+ # Task :publish
97
+ #
98
+ desc 'uninstall gem, release, reinstall gem'
99
+ task :publish => [ :rubygems_release, :gem_uninstall, :git_publish, :sleep_15, :gem_install] do
100
+ puts 'done.'
101
+ end
37
102
 
38
- # ----------------------------------------------------------------------------------------------
39
- # Local Tasks
40
- #
41
103
 
42
- remove_task 'ridocs'
43
- remove_task 'rdoc'
44
- remove_task 'docs'
45
- remove_task 'audit'
46
- remove_task 'dcov'
47
- remove_task 'debug_email'
48
- remove_task 'debug_gem'
49
- remove_task 'deploy'
50
- remove_task 'deps:email'
51
- remove_task 'install_gem'
52
- remove_task 'multi'
53
- remove_task 'newb'
54
- Dir['tasks/**/*.rake'].each { |t| load t }
55
104
 
56
105
 
106
+ # -------------------------------------------------------------------------------------------------------
107
+ # git
108
+ #
57
109
 
58
110
 
111
+ # git_publish
112
+ #
113
+ desc ':git_add, :git_commit, :git_push'
114
+ task :git_publish => [ :git_add, :git_commit, :git_push ] do
115
+ puts
116
+ puts
117
+ if Hoe::WINDOZE
118
+ sh "start https://github.com/bklippstein/kyanite"
119
+ else
120
+ puts 'done. Visit https://github.com/bklippstein/kyanite'
121
+ end
122
+ end
123
+
124
+
125
+
126
+ # git_status
127
+ #
128
+ desc 'git status'
129
+ task :git_status do
130
+ sh "#{'sudo ' unless Hoe::WINDOZE }git status"
131
+ end
132
+
133
+
134
+
135
+ # git_add
136
+ #
137
+ desc 'git_add -A'
138
+ task :git_add do
139
+ sh "#{'sudo ' unless Hoe::WINDOZE }git add -A"
140
+ end
141
+
142
+
143
+
144
+ # git_commit
145
+ #
146
+ desc 'git commit -m'
147
+ task :git_commit do
148
+ sh "#{'sudo ' unless Hoe::WINDOZE }git commit " + ' -m "rake commit"'
149
+ end
59
150
 
60
151
 
152
+ # git push origin master
153
+ #
154
+ desc 'git_push'
155
+ task :git_push do
156
+ sh "#{'sudo ' unless Hoe::WINDOZE }git push origin master"
157
+ end
61
158
 
62
159
 
160
+
63
161
 
64
162
 
65
163
 
164
+
165
+
166
+ # -------------------------------------------------------------------------------------------------------
167
+ # rubygems
168
+ #
66
169
 
170
+
171
+
172
+ # Task :rubygems_release
173
+ #
174
+ desc 'release actual version'
175
+ task :rubygems_release do
176
+ ENV["VERSION"] = Kyanite::VERSION
177
+ Rake::Task[:release].invoke
67
178
 
179
+ end
68
180
 
69
181
 
182
+
183
+ # Task :gem_uninstall
184
+ #
185
+ desc 'Uninstall gem'
186
+ task :gem_uninstall do
187
+ sh "#{'sudo ' unless Hoe::WINDOZE }gem uninstall kyanite --a --ignore-dependencies"
188
+ end
189
+
70
190
 
191
+
192
+ # Task :gem_install
193
+ #
194
+ desc 'Install gem from remote'
195
+ task :gem_install do
196
+ sh "#{'sudo ' unless Hoe::WINDOZE }gem install kyanite"
197
+ end
198
+
199
+
200
+
201
+ # -------------------------------------------------------------------------------------------------------
202
+ # Div
203
+ #
204
+
205
+ # namespace :manifest do
206
+ # desc 'Recreate Manifest.txt to include ALL files'
207
+ # task :refresh do
208
+ # `rake check_manifest | patch -p0 > Manifest.txt`
209
+ # end
210
+ # end
71
211
 
72
212
 
73
213
 
data/lib/kyanite.rb CHANGED
@@ -15,7 +15,7 @@ end
15
15
 
16
16
 
17
17
  module Kyanite #:nodoc
18
- VERSION = '0.5.7'
18
+ VERSION = '0.5.8'
19
19
  end
20
20
 
21
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kyanite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: