fisheye-crucible 0.0.1 → 0.0.2
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.
- data/.yardoc/checksums +5 -0
- data/.yardoc/objects/FisheyeCrucible.dat +0 -0
- data/.yardoc/objects/FisheyeCrucible/Client.dat +0 -0
- data/.yardoc/objects/FisheyeCrucible/Client/Legacy.dat +0 -0
- data/.yardoc/objects/FisheyeCrucible/Client/debug_i.dat +0 -0
- data/.yardoc/objects/FisheyeCrucible/Client/do_debug_3D_i.dat +0 -0
- data/.yardoc/objects/FisheyeCrucible/Client/do_debug_i.dat +0 -0
- data/.yardoc/objects/FisheyeCrucible/Client/initialize_i.dat +0 -0
- data/.yardoc/objects/FisheyeCrucible/VERSION.dat +0 -0
- data/.yardoc/objects/FisheyeCrucible/WWW.dat +0 -0
- data/.yardoc/objects/FisheyeCrucibleError.dat +0 -0
- data/.yardoc/objects/FisheyeCrucibleError/message_i.dat +0 -0
- data/.yardoc/objects/String.dat +0 -0
- data/.yardoc/objects/String/boolean_to_true_false_i.dat +0 -0
- data/.yardoc/objects/String/changeset_to_hash_i.dat +0 -0
- data/.yardoc/objects/String/changesets_to_hash_i.dat +0 -0
- data/.yardoc/objects/String/custom_to_array_i.dat +0 -0
- data/.yardoc/objects/String/history_to_array_i.dat +0 -0
- data/.yardoc/objects/String/pathinfo_to_hash_i.dat +0 -0
- data/.yardoc/objects/String/revision_to_hash_i.dat +0 -0
- data/.yardoc/objects/String/revisionkeys_to_array_i.dat +0 -0
- data/.yardoc/objects/String/string_to_array_i.dat +0 -0
- data/.yardoc/objects/String/string_to_string_i.dat +0 -0
- data/.yardoc/objects/String/string_to_true_false_i.dat +0 -0
- data/.yardoc/objects/String/to_ruby_i.dat +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/Manifest.txt +27 -0
- data/README.rdoc +4 -0
- data/Rakefile +3 -1
- data/lib/fisheye-crucible.rb +1 -1
- data/lib/fisheye-crucible/client.rb +2 -2
- data/lib/fisheye-crucible/client/legacy.rb +9 -9
- data/lib/fisheye-crucible/type_converter.rb +14 -12
- metadata +33 -9
data/.yardoc/checksums
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
lib/fisheye-crucible.rb 92af7098e3f2dbc2003226d11627ee590f3fb82a
|
2
|
+
lib/fisheye-crucible/client.rb d0747059330f0332c3ae55bfa85e0027434de731
|
3
|
+
lib/fisheye_crucible_exception.rb 8ad3e6df562697e5175a7b363dd8a6f8891b3eda
|
4
|
+
lib/fisheye-crucible/client/legacy.rb 2dd7372208c14c710c8398bed0949e956f65c937
|
5
|
+
lib/fisheye-crucible/type_converter.rb 796e22dcb73821bf69e88097dd8ac78c98250e47
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/.yardoc/proxy_types
ADDED
Binary file
|
data/Manifest.txt
CHANGED
@@ -1,3 +1,30 @@
|
|
1
|
+
.yardoc/checksums
|
2
|
+
.yardoc/objects/FisheyeCrucible.dat
|
3
|
+
.yardoc/objects/FisheyeCrucible/Client.dat
|
4
|
+
.yardoc/objects/FisheyeCrucible/Client/Legacy.dat
|
5
|
+
.yardoc/objects/FisheyeCrucible/Client/debug_i.dat
|
6
|
+
.yardoc/objects/FisheyeCrucible/Client/do_debug_3D_i.dat
|
7
|
+
.yardoc/objects/FisheyeCrucible/Client/do_debug_i.dat
|
8
|
+
.yardoc/objects/FisheyeCrucible/Client/initialize_i.dat
|
9
|
+
.yardoc/objects/FisheyeCrucible/VERSION.dat
|
10
|
+
.yardoc/objects/FisheyeCrucible/WWW.dat
|
11
|
+
.yardoc/objects/FisheyeCrucibleError.dat
|
12
|
+
.yardoc/objects/FisheyeCrucibleError/message_i.dat
|
13
|
+
.yardoc/objects/String.dat
|
14
|
+
.yardoc/objects/String/boolean_to_true_false_i.dat
|
15
|
+
.yardoc/objects/String/changeset_to_hash_i.dat
|
16
|
+
.yardoc/objects/String/changesets_to_hash_i.dat
|
17
|
+
.yardoc/objects/String/custom_to_array_i.dat
|
18
|
+
.yardoc/objects/String/history_to_array_i.dat
|
19
|
+
.yardoc/objects/String/pathinfo_to_hash_i.dat
|
20
|
+
.yardoc/objects/String/revision_to_hash_i.dat
|
21
|
+
.yardoc/objects/String/revisionkeys_to_array_i.dat
|
22
|
+
.yardoc/objects/String/string_to_array_i.dat
|
23
|
+
.yardoc/objects/String/string_to_string_i.dat
|
24
|
+
.yardoc/objects/String/string_to_true_false_i.dat
|
25
|
+
.yardoc/objects/String/to_ruby_i.dat
|
26
|
+
.yardoc/objects/root.dat
|
27
|
+
.yardoc/proxy_types
|
1
28
|
History.txt
|
2
29
|
Manifest.txt
|
3
30
|
PostInstall.txt
|
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -48,15 +48,17 @@ $hoe = Hoe.spec 'fisheye-crucible' do
|
|
48
48
|
|
49
49
|
# Extra Yard options
|
50
50
|
self.yard_title = "#{self.name} Documentation (#{self.version})"
|
51
|
-
self.yard_markup =
|
51
|
+
self.yard_markup = "rdoc"
|
52
52
|
self.yard_opts += ['--main', self.readme_file]
|
53
53
|
self.yard_opts += ['--output-dir', 'doc']
|
54
54
|
self.yard_opts += ['--private']
|
55
55
|
self.yard_opts += ['--protected']
|
56
56
|
self.yard_opts += ['--verbose']
|
57
|
+
=begin
|
57
58
|
self.yard_opts += ['--files',
|
58
59
|
['Manifest.txt', 'History.txt']
|
59
60
|
]
|
61
|
+
=end
|
60
62
|
end
|
61
63
|
|
62
64
|
#-------------------------------------------------------------------------------
|
data/lib/fisheye-crucible.rb
CHANGED
@@ -3,8 +3,8 @@ require 'fisheye-crucible'
|
|
3
3
|
require 'rest-client'
|
4
4
|
|
5
5
|
# This is the parent class for accessing Fisheye/Crucible. This will change
|
6
|
-
#
|
7
|
-
#
|
6
|
+
# quite a bit once work on the current Fisheye/Crucible gets started. For
|
7
|
+
# now, look at the docs for FisheyeCrucible::Client::Legacy to get started.
|
8
8
|
class FisheyeCrucible::Client
|
9
9
|
|
10
10
|
# @return [Boolean] Turn debug on or off
|
@@ -5,11 +5,11 @@ require 'rexml/document'
|
|
5
5
|
|
6
6
|
##
|
7
7
|
# This class provides access to the Fisheye/Crucible REST API that was
|
8
|
-
#
|
9
|
-
#
|
8
|
+
# used before version 2.0. More info here:
|
9
|
+
# http://confluence.atlassian.com/display/FECRUDEV/FishEye+Legacy+Remote+API
|
10
10
|
#
|
11
11
|
# All methods are named in Ruby style, however aliases are provided that are
|
12
|
-
#
|
12
|
+
# named after the Fisheye/Crucible function name (if different).
|
13
13
|
class FisheyeCrucible::Client::Legacy < FisheyeCrucible::Client
|
14
14
|
|
15
15
|
def initialize(server)
|
@@ -18,7 +18,7 @@ class FisheyeCrucible::Client::Legacy < FisheyeCrucible::Client
|
|
18
18
|
|
19
19
|
##
|
20
20
|
# Logs in with provided credentials and returns a token that can be used for
|
21
|
-
#
|
21
|
+
# all other calls.
|
22
22
|
#
|
23
23
|
# @param [String] username The user to login with.
|
24
24
|
# @param [String] password The password of the user to login with.
|
@@ -104,7 +104,7 @@ class FisheyeCrucible::Client::Legacy < FisheyeCrucible::Client
|
|
104
104
|
|
105
105
|
##
|
106
106
|
# Gets details about a specific file/directory revision from the given
|
107
|
-
#
|
107
|
+
# repository.
|
108
108
|
#
|
109
109
|
# @param [String] repository The repository in which the file resides.
|
110
110
|
# @param [String] path The path, relative to the repository, in which the
|
@@ -171,7 +171,7 @@ class FisheyeCrucible::Client::Legacy < FisheyeCrucible::Client
|
|
171
171
|
|
172
172
|
##
|
173
173
|
# Gets the history for a file/directory, which is a list of revisions and
|
174
|
-
#
|
174
|
+
# their associated info.
|
175
175
|
#
|
176
176
|
# @param [String] repository The repository for which to get the history
|
177
177
|
# info about.
|
@@ -243,8 +243,8 @@ class FisheyeCrucible::Client::Legacy < FisheyeCrucible::Client
|
|
243
243
|
|
244
244
|
##
|
245
245
|
# Sends an EyeQL query to the server for a given repository. Return types
|
246
|
-
#
|
247
|
-
#
|
246
|
+
# can differ depending on the 'return-clause' used in the query. For more
|
247
|
+
# info, see http://confluence.atlassian.com/display/FISHEYE/EyeQL+Reference+Guide.
|
248
248
|
#
|
249
249
|
# @param [String] repository The repository to run the EyeQL query on.
|
250
250
|
# @param [String] query The EyeQL query to run.
|
@@ -299,7 +299,7 @@ class FisheyeCrucible::Client::Legacy < FisheyeCrucible::Client
|
|
299
299
|
|
300
300
|
##
|
301
301
|
# Removes all key/value pairs from Hash that have a nil value and returns
|
302
|
-
#
|
302
|
+
# a Hash with keys that have values.
|
303
303
|
#
|
304
304
|
# @param [Hash] options The Hash to remove nil key/value pairs from.
|
305
305
|
def non_nil_options_in options
|
@@ -8,18 +8,18 @@ require 'fisheye-crucible'
|
|
8
8
|
class String
|
9
9
|
|
10
10
|
# Takes a String of XML then converts in to a correlating Ruby data type.
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
17
|
-
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
21
|
-
#
|
22
|
-
#
|
11
|
+
# Aside from the documentation for each private method below, here is the
|
12
|
+
# conversion table:
|
13
|
+
# | Fisheye/Crucible Type | Ruby Type |
|
14
|
+
# | string | String |
|
15
|
+
# | boolean | TrueClass, FalseClass |
|
16
|
+
# | pathinfo | Hash with child Hashes |
|
17
|
+
# | revision | Hash |
|
18
|
+
# | history | Array of revisions |
|
19
|
+
# | changeset | Hash |
|
20
|
+
# | changesets | Hash of changesets |
|
21
|
+
# | revisionkey | Array with child Hashes |
|
22
|
+
# | row | Array |
|
23
23
|
def to_ruby
|
24
24
|
doc = REXML::Document.new self
|
25
25
|
|
@@ -66,6 +66,8 @@ class String
|
|
66
66
|
return revisionkeys_to_array(doc)
|
67
67
|
elsif response_type.eql? 'row'
|
68
68
|
return custom_to_array(doc)
|
69
|
+
elsif response_type.eql? ''
|
70
|
+
return ''
|
69
71
|
end
|
70
72
|
|
71
73
|
message = "Response type unknown: '#{response_type}'"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fisheye-crucible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steve Loveless
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-08-05 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -151,6 +151,33 @@ extra_rdoc_files:
|
|
151
151
|
- Manifest.txt
|
152
152
|
- PostInstall.txt
|
153
153
|
files:
|
154
|
+
- .yardoc/checksums
|
155
|
+
- .yardoc/objects/FisheyeCrucible.dat
|
156
|
+
- .yardoc/objects/FisheyeCrucible/Client.dat
|
157
|
+
- .yardoc/objects/FisheyeCrucible/Client/Legacy.dat
|
158
|
+
- .yardoc/objects/FisheyeCrucible/Client/debug_i.dat
|
159
|
+
- .yardoc/objects/FisheyeCrucible/Client/do_debug_3D_i.dat
|
160
|
+
- .yardoc/objects/FisheyeCrucible/Client/do_debug_i.dat
|
161
|
+
- .yardoc/objects/FisheyeCrucible/Client/initialize_i.dat
|
162
|
+
- .yardoc/objects/FisheyeCrucible/VERSION.dat
|
163
|
+
- .yardoc/objects/FisheyeCrucible/WWW.dat
|
164
|
+
- .yardoc/objects/FisheyeCrucibleError.dat
|
165
|
+
- .yardoc/objects/FisheyeCrucibleError/message_i.dat
|
166
|
+
- .yardoc/objects/String.dat
|
167
|
+
- .yardoc/objects/String/boolean_to_true_false_i.dat
|
168
|
+
- .yardoc/objects/String/changeset_to_hash_i.dat
|
169
|
+
- .yardoc/objects/String/changesets_to_hash_i.dat
|
170
|
+
- .yardoc/objects/String/custom_to_array_i.dat
|
171
|
+
- .yardoc/objects/String/history_to_array_i.dat
|
172
|
+
- .yardoc/objects/String/pathinfo_to_hash_i.dat
|
173
|
+
- .yardoc/objects/String/revision_to_hash_i.dat
|
174
|
+
- .yardoc/objects/String/revisionkeys_to_array_i.dat
|
175
|
+
- .yardoc/objects/String/string_to_array_i.dat
|
176
|
+
- .yardoc/objects/String/string_to_string_i.dat
|
177
|
+
- .yardoc/objects/String/string_to_true_false_i.dat
|
178
|
+
- .yardoc/objects/String/to_ruby_i.dat
|
179
|
+
- .yardoc/objects/root.dat
|
180
|
+
- .yardoc/proxy_types
|
154
181
|
- History.txt
|
155
182
|
- Manifest.txt
|
156
183
|
- PostInstall.txt
|
@@ -212,13 +239,10 @@ rdoc_options:
|
|
212
239
|
- --private
|
213
240
|
- --protected
|
214
241
|
- --verbose
|
215
|
-
- --files
|
216
|
-
- - Manifest.txt
|
217
|
-
- History.txt
|
218
242
|
- --title
|
219
|
-
- fisheye-crucible Documentation (0.0.
|
243
|
+
- fisheye-crucible Documentation (0.0.2)
|
220
244
|
- --markup
|
221
|
-
-
|
245
|
+
- rdoc
|
222
246
|
require_paths:
|
223
247
|
- lib
|
224
248
|
required_ruby_version: !ruby/object:Gem::Requirement
|