desmoservice 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/desmoservice-0.2.0.gem +0 -0
- data/desmoservice.gemspec +2 -2
- data/lib/edition.rb +8 -2
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d18592e41ee622239d6903779ffb2e3b1d380780
|
|
4
|
+
data.tar.gz: 75691f636a3a99a54fa005be1464d2db310b4e96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab1a95e4776cc417f515c9a54f35258d38b15ca3f26f5448e94b1be2c4919f6324e817644b4d30da5427c021c6683a1842a68fe436c2391630ce0ff61206846b
|
|
7
|
+
data.tar.gz: ea698075b4a1d8205dcdfda99db6aef288df7e0e89b48e28b5551cd1bd48d10be37340ce530ed2729af2da93d6a8c158e2755c28b70e2a18949df3b31e3175bf
|
|
Binary file
|
data/desmoservice.gemspec
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'desmoservice'
|
|
3
|
-
s.version = '0.2.
|
|
4
|
-
s.date = '2015-11-
|
|
3
|
+
s.version = '0.2.1'
|
|
4
|
+
s.date = '2015-11-09'
|
|
5
5
|
s.license = 'Ruby'
|
|
6
6
|
s.summary = 'Read and write access to Desmoservice API'
|
|
7
7
|
s.description = 'Manage the connection to Desmoservice server, convert JSON to ruby objects and build XML for edition'
|
data/lib/edition.rb
CHANGED
|
@@ -31,11 +31,17 @@ class Edition
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
def change_term(term_arg)
|
|
34
|
-
@xml << '<
|
|
34
|
+
@xml << '<term-change'
|
|
35
35
|
Edition.to_attribute(@xml, term_arg)
|
|
36
36
|
@xml << '>'
|
|
37
37
|
yield(TermEdit.new(@xml))
|
|
38
|
-
@xml << '</
|
|
38
|
+
@xml << '</term-change>'
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def remove_term(term_arg)
|
|
42
|
+
@xml << '<term-remove'
|
|
43
|
+
Edition.to_attribute(@xml, term_arg)
|
|
44
|
+
@xml << '/>'
|
|
39
45
|
end
|
|
40
46
|
|
|
41
47
|
def self.to_attribute(xml, term_arg, suffix=nil)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: desmoservice
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vincent Calame
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-11-
|
|
11
|
+
date: 2015-11-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Manage the connection to Desmoservice server, convert JSON to ruby objects
|
|
14
14
|
and build XML for edition
|
|
@@ -18,6 +18,7 @@ extensions: []
|
|
|
18
18
|
extra_rdoc_files: []
|
|
19
19
|
files:
|
|
20
20
|
- README
|
|
21
|
+
- desmoservice-0.2.0.gem
|
|
21
22
|
- lib/ventilation.rb
|
|
22
23
|
- lib/get.rb
|
|
23
24
|
- lib/conf.rb
|