kyanite 0.5.8 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +3 -3
- data/Rakefile.rb +116 -77
- data/lib/kyanite.rb +1 -1
- metadata +2 -2
data/README.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
= *Kyanite*
|
4
4
|
|
5
|
-
http://
|
5
|
+
http://bklippstein.github.com/kyanite/
|
6
6
|
|
7
7
|
[ | *Kyanite* | Object | Array | Set | Enumerable | Hash | ] | *Kyanite* | TrueClass | FalseClass | NilClass | Div |
|
8
8
|
---
|
@@ -30,11 +30,11 @@ http://creativecommons.org/licenses/by-sa/3.0/de/deed.en
|
|
30
30
|
|
31
31
|
|
32
32
|
== Homepage
|
33
|
-
http://
|
33
|
+
http://bklippstein.github.com/kyanite/
|
34
34
|
|
35
35
|
|
36
36
|
== Author
|
37
|
-
Björn Klippstein
|
37
|
+
Björn Klippstein
|
38
38
|
|
39
39
|
|
40
40
|
== Disclaimer
|
data/Rakefile.rb
CHANGED
@@ -5,67 +5,9 @@ require 'hoe'
|
|
5
5
|
require 'rake'
|
6
6
|
require File.dirname(__FILE__) + '/lib/kyanite'
|
7
7
|
require 'kyanite/rake'
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
# ----------------------------------------------------------------------------------------------
|
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
8
|
require 'rdoc/task'
|
38
9
|
|
39
10
|
|
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
11
|
|
70
12
|
# ----------------------------------------------------------------------------------------------
|
71
13
|
# Hoe
|
@@ -78,14 +20,14 @@ $hoe = Hoe.spec 'kyanite' do
|
|
78
20
|
|
79
21
|
developer('Bjoern Klippstein', 'klippstein@klippstein.com')
|
80
22
|
summary = 'General toolbox like Facets or ActiveSupport.'
|
81
|
-
urls << ['http://
|
23
|
+
urls << ['http://bklippstein.github.com/kyanite/']
|
82
24
|
remote_rdoc_dir = '' # Release to root only one project
|
83
25
|
extra_deps << ['activesupport', '>= 3.2.8']
|
84
26
|
extra_deps << ['facets', '>= 2.9.3']
|
85
27
|
extra_deps << ['rubytree', '>= 0.8.3']
|
86
28
|
|
87
|
-
|
88
|
-
|
29
|
+
|
30
|
+
|
89
31
|
end
|
90
32
|
|
91
33
|
|
@@ -95,14 +37,13 @@ end
|
|
95
37
|
|
96
38
|
# Task :publish
|
97
39
|
#
|
98
|
-
desc '
|
99
|
-
task :publish => [ :
|
40
|
+
desc 'publish all on github and rubygems, reinstall gem'
|
41
|
+
task :publish => [ :redocs, :rubygems_publish, :gem_uninstall, :git_publish, :git_publish_docs, :sleep_15, :gem_install] do
|
100
42
|
puts 'done.'
|
101
43
|
end
|
102
44
|
|
103
45
|
|
104
46
|
|
105
|
-
|
106
47
|
# -------------------------------------------------------------------------------------------------------
|
107
48
|
# git
|
108
49
|
#
|
@@ -115,7 +56,7 @@ end
|
|
115
56
|
puts
|
116
57
|
puts
|
117
58
|
if Hoe::WINDOZE
|
118
|
-
sh "start https://github.com/bklippstein/kyanite"
|
59
|
+
sh "start https://github.com/bklippstein/kyanite "
|
119
60
|
else
|
120
61
|
puts 'done. Visit https://github.com/bklippstein/kyanite'
|
121
62
|
end
|
@@ -127,7 +68,7 @@ end
|
|
127
68
|
#
|
128
69
|
desc 'git status'
|
129
70
|
task :git_status do
|
130
|
-
sh "#{'sudo ' unless Hoe::WINDOZE }git status"
|
71
|
+
sh "#{'sudo ' unless Hoe::WINDOZE }git status "
|
131
72
|
end
|
132
73
|
|
133
74
|
|
@@ -136,7 +77,7 @@ end
|
|
136
77
|
#
|
137
78
|
desc 'git_add -A'
|
138
79
|
task :git_add do
|
139
|
-
sh "#{'sudo ' unless Hoe::WINDOZE }git add -A"
|
80
|
+
sh "#{'sudo ' unless Hoe::WINDOZE }git add -A "
|
140
81
|
end
|
141
82
|
|
142
83
|
|
@@ -145,7 +86,7 @@ end
|
|
145
86
|
#
|
146
87
|
desc 'git commit -m'
|
147
88
|
task :git_commit do
|
148
|
-
sh "#{'sudo ' unless Hoe::WINDOZE }git commit " + ' -m "
|
89
|
+
sh "#{'sudo ' unless Hoe::WINDOZE }git commit " + ' -m "---"'
|
149
90
|
end
|
150
91
|
|
151
92
|
|
@@ -153,26 +94,66 @@ end
|
|
153
94
|
#
|
154
95
|
desc 'git_push'
|
155
96
|
task :git_push do
|
156
|
-
sh "#{'sudo ' unless Hoe::WINDOZE }git push origin master"
|
97
|
+
sh "#{'sudo ' unless Hoe::WINDOZE }git push origin master "
|
157
98
|
end
|
158
99
|
|
159
100
|
|
160
101
|
|
161
|
-
|
162
|
-
|
102
|
+
# git_publish_docs
|
103
|
+
#
|
104
|
+
desc 'Update gh-pages branch'
|
105
|
+
task :git_publish_docs do
|
106
|
+
|
107
|
+
# Repository erstellen, wenn nötig
|
108
|
+
Dir.chdir '/tmp' do
|
109
|
+
sh 'git clone https://github.com/bklippstein/kyanite ' do |ok,res|
|
110
|
+
if ok
|
111
|
+
Dir.chdir '/tmp/kyanite' do
|
112
|
+
sh 'git checkout --orphan gh-pages '
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end # do sh
|
116
|
+
end
|
117
|
+
|
118
|
+
# alles löschen
|
119
|
+
Dir.chdir '/tmp/kyanite' do
|
120
|
+
sh 'git rm -rf --ignore-unmatch . '
|
121
|
+
end
|
122
|
+
|
123
|
+
# doc rüberkopieren
|
124
|
+
Dir.chdir 'doc' do
|
125
|
+
sh 'xcopy /E *.* \tmp\kyanite '
|
126
|
+
end
|
127
|
+
|
128
|
+
# publish
|
129
|
+
Dir.chdir '/tmp/kyanite' do
|
130
|
+
sh 'git add -A '
|
131
|
+
sh "git commit " + ' -m "---" --allow-empty'
|
132
|
+
sh 'git push origin +gh-pages ' # C:\Users\Klippstein\_netrc enthält die Login-Daten
|
133
|
+
|
134
|
+
if Hoe::WINDOZE
|
135
|
+
sh "start http://bklippstein.github.com/kyanite "
|
136
|
+
else
|
137
|
+
puts 'done. Visit http://bklippstein.github.com/kyanite '
|
138
|
+
end # if
|
139
|
+
|
140
|
+
end # do chdir
|
141
|
+
|
142
|
+
|
143
|
+
end # do task
|
144
|
+
|
145
|
+
|
163
146
|
|
164
147
|
|
165
|
-
|
166
148
|
# -------------------------------------------------------------------------------------------------------
|
167
149
|
# rubygems
|
168
150
|
#
|
169
151
|
|
170
152
|
|
171
|
-
|
172
|
-
# Task :rubygems_release
|
153
|
+
# Task :rubygems_publish
|
173
154
|
#
|
174
155
|
desc 'release actual version'
|
175
|
-
task :
|
156
|
+
task :rubygems_publish do
|
176
157
|
ENV["VERSION"] = Kyanite::VERSION
|
177
158
|
Rake::Task[:release].invoke
|
178
159
|
|
@@ -184,7 +165,7 @@ end
|
|
184
165
|
#
|
185
166
|
desc 'Uninstall gem'
|
186
167
|
task :gem_uninstall do
|
187
|
-
sh "#{'sudo ' unless Hoe::WINDOZE }gem uninstall kyanite --a --ignore-dependencies"
|
168
|
+
sh "#{'sudo ' unless Hoe::WINDOZE }gem uninstall kyanite --a --ignore-dependencies "
|
188
169
|
end
|
189
170
|
|
190
171
|
|
@@ -193,11 +174,69 @@ end
|
|
193
174
|
#
|
194
175
|
desc 'Install gem from remote'
|
195
176
|
task :gem_install do
|
196
|
-
sh "#{'sudo ' unless Hoe::WINDOZE }gem install kyanite"
|
177
|
+
sh "#{'sudo ' unless Hoe::WINDOZE }gem install kyanite "
|
197
178
|
end
|
198
179
|
|
199
180
|
|
200
181
|
|
182
|
+
|
183
|
+
# ----------------------------------------------------------------------------------------------
|
184
|
+
# Documentation
|
185
|
+
#
|
186
|
+
# http://rubeh.tumblr.com/post/27622544/rake-rdoctask-with-all-of-the-options-stubbed-out
|
187
|
+
# http://www.java2s.com/Code/Ruby/Language-Basics/RDocoptionsareusedlikethisrdocoptionsnames.htm
|
188
|
+
#
|
189
|
+
|
190
|
+
remove_task 'docs'
|
191
|
+
|
192
|
+
desc "Generate RDoc documentation for Kyanite"
|
193
|
+
Rake::RDocTask.new(:docs) do |rd|
|
194
|
+
rd.title = "Kyanite #{Kyanite::VERSION}"
|
195
|
+
|
196
|
+
rd.rdoc_dir = 'doc'
|
197
|
+
rd.rdoc_files.include('lib/**/*.rb')
|
198
|
+
rd.rdoc_files.include('test/**/test_*.rb')
|
199
|
+
rd.rdoc_files.include('README.txt', 'License.txt', 'Div')
|
200
|
+
|
201
|
+
rd.rdoc_files.exclude('lib/kyanite/array/array2')
|
202
|
+
rd.rdoc_files.exclude('lib/kyanite/array/matrix2')
|
203
|
+
rd.rdoc_files.exclude('lib/kyanite/operation/call_tracker')
|
204
|
+
#rd.rdoc_files.exclude('lib/kyanite.rb')
|
205
|
+
|
206
|
+
#rd.main = 'README.txt'
|
207
|
+
|
208
|
+
|
209
|
+
rd.options += [
|
210
|
+
'--tab-width', '4',
|
211
|
+
'--main', 'README.txt',
|
212
|
+
'--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.
|
213
|
+
'--line-numbers',
|
214
|
+
'--all',
|
215
|
+
'--charset=utf8'
|
216
|
+
]
|
217
|
+
|
218
|
+
end
|
219
|
+
|
220
|
+
|
221
|
+
# ----------------------------------------------------------------------------------------------
|
222
|
+
# Local Tasks
|
223
|
+
#
|
224
|
+
|
225
|
+
remove_task 'ridocs'
|
226
|
+
remove_task 'rdoc'
|
227
|
+
remove_task 'audit'
|
228
|
+
remove_task 'dcov'
|
229
|
+
remove_task 'debug_email'
|
230
|
+
remove_task 'debug_gem'
|
231
|
+
remove_task 'deploy'
|
232
|
+
remove_task 'deps:email'
|
233
|
+
remove_task 'install_gem'
|
234
|
+
remove_task 'multi'
|
235
|
+
remove_task 'newb'
|
236
|
+
Dir['tasks/**/*.rake'].each { |t| load t }
|
237
|
+
|
238
|
+
|
239
|
+
|
201
240
|
# -------------------------------------------------------------------------------------------------------
|
202
241
|
# Div
|
203
242
|
#
|
data/lib/kyanite.rb
CHANGED
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.
|
4
|
+
version: 0.5.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|