nokogiri-happymapper 0.6.0 → 0.9.0
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 +5 -5
- data/CHANGELOG.md +64 -5
- data/README.md +296 -192
- data/lib/happymapper/anonymous_mapper.rb +46 -43
- data/lib/happymapper/attribute.rb +7 -5
- data/lib/happymapper/element.rb +19 -22
- data/lib/happymapper/item.rb +19 -21
- data/lib/happymapper/supported_types.rb +20 -28
- data/lib/happymapper/text_node.rb +4 -3
- data/lib/happymapper/version.rb +3 -1
- data/lib/happymapper.rb +336 -362
- data/lib/nokogiri-happymapper.rb +4 -0
- metadata +124 -105
- data/spec/attribute_default_value_spec.rb +0 -50
- data/spec/attributes_spec.rb +0 -36
- data/spec/fixtures/address.xml +0 -9
- data/spec/fixtures/ambigous_items.xml +0 -22
- data/spec/fixtures/analytics.xml +0 -61
- data/spec/fixtures/analytics_profile.xml +0 -127
- data/spec/fixtures/atom.xml +0 -19
- data/spec/fixtures/commit.xml +0 -52
- data/spec/fixtures/current_weather.xml +0 -89
- data/spec/fixtures/current_weather_missing_elements.xml +0 -18
- data/spec/fixtures/default_namespace_combi.xml +0 -6
- data/spec/fixtures/dictionary.xml +0 -20
- data/spec/fixtures/family_tree.xml +0 -21
- data/spec/fixtures/inagy.xml +0 -85
- data/spec/fixtures/lastfm.xml +0 -355
- data/spec/fixtures/multiple_namespaces.xml +0 -170
- data/spec/fixtures/multiple_primitives.xml +0 -5
- data/spec/fixtures/optional_attributes.xml +0 -6
- data/spec/fixtures/pita.xml +0 -133
- data/spec/fixtures/posts.xml +0 -23
- data/spec/fixtures/product_default_namespace.xml +0 -18
- data/spec/fixtures/product_no_namespace.xml +0 -10
- data/spec/fixtures/product_single_namespace.xml +0 -10
- data/spec/fixtures/quarters.xml +0 -19
- data/spec/fixtures/radar.xml +0 -21
- data/spec/fixtures/set_config_options.xml +0 -3
- data/spec/fixtures/statuses.xml +0 -422
- data/spec/fixtures/subclass_namespace.xml +0 -50
- data/spec/fixtures/unformatted_address.xml +0 -1
- data/spec/fixtures/wrapper.xml +0 -11
- data/spec/happymapper/attribute_spec.rb +0 -12
- data/spec/happymapper/element_spec.rb +0 -9
- data/spec/happymapper/item_spec.rb +0 -136
- data/spec/happymapper/text_node_spec.rb +0 -9
- data/spec/happymapper_parse_spec.rb +0 -113
- data/spec/happymapper_spec.rb +0 -1129
- data/spec/has_many_empty_array_spec.rb +0 -43
- data/spec/ignay_spec.rb +0 -95
- data/spec/inheritance_spec.rb +0 -107
- data/spec/mixed_namespaces_spec.rb +0 -61
- data/spec/parse_with_object_to_update_spec.rb +0 -111
- data/spec/spec_helper.rb +0 -7
- data/spec/to_xml_spec.rb +0 -201
- data/spec/to_xml_with_namespaces_spec.rb +0 -232
- data/spec/wilcard_tag_name_spec.rb +0 -96
- data/spec/wrap_spec.rb +0 -82
- data/spec/xpath_spec.rb +0 -89
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nokogiri-happymapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damien Le Berrigaud
|
@@ -11,10 +11,10 @@ authors:
|
|
11
11
|
- Etienne Vallette d'Osia
|
12
12
|
- Franklin Webber
|
13
13
|
- Matijs van Zuijlen
|
14
|
-
autorequire:
|
14
|
+
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date:
|
17
|
+
date: 2022-01-21 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: nokogiri
|
@@ -30,6 +30,48 @@ dependencies:
|
|
30
30
|
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '1.5'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: pry
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 0.14.0
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.14.0
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rake
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '13.0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '13.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake-manifest
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 0.2.0
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 0.2.0
|
33
75
|
- !ruby/object:Gem::Dependency
|
34
76
|
name: rspec
|
35
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,6 +86,76 @@ dependencies:
|
|
44
86
|
- - "~>"
|
45
87
|
- !ruby/object:Gem::Version
|
46
88
|
version: '3.0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: rubocop
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 1.25.0
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 1.25.0
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rubocop-packaging
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.5.0
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 0.5.0
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rubocop-performance
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 1.13.0
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 1.13.0
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: rubocop-rspec
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 2.7.0
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: 2.7.0
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: simplecov
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - "~>"
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 0.21.1
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - "~>"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 0.21.1
|
47
159
|
description: Object to XML Mapping Library, using Nokogiri (fork from John Nunemaker's
|
48
160
|
Happymapper)
|
49
161
|
email: matijs@matijs.net
|
@@ -65,58 +177,13 @@ files:
|
|
65
177
|
- lib/happymapper/supported_types.rb
|
66
178
|
- lib/happymapper/text_node.rb
|
67
179
|
- lib/happymapper/version.rb
|
68
|
-
-
|
69
|
-
- spec/attributes_spec.rb
|
70
|
-
- spec/fixtures/address.xml
|
71
|
-
- spec/fixtures/ambigous_items.xml
|
72
|
-
- spec/fixtures/analytics.xml
|
73
|
-
- spec/fixtures/analytics_profile.xml
|
74
|
-
- spec/fixtures/atom.xml
|
75
|
-
- spec/fixtures/commit.xml
|
76
|
-
- spec/fixtures/current_weather.xml
|
77
|
-
- spec/fixtures/current_weather_missing_elements.xml
|
78
|
-
- spec/fixtures/default_namespace_combi.xml
|
79
|
-
- spec/fixtures/dictionary.xml
|
80
|
-
- spec/fixtures/family_tree.xml
|
81
|
-
- spec/fixtures/inagy.xml
|
82
|
-
- spec/fixtures/lastfm.xml
|
83
|
-
- spec/fixtures/multiple_namespaces.xml
|
84
|
-
- spec/fixtures/multiple_primitives.xml
|
85
|
-
- spec/fixtures/optional_attributes.xml
|
86
|
-
- spec/fixtures/pita.xml
|
87
|
-
- spec/fixtures/posts.xml
|
88
|
-
- spec/fixtures/product_default_namespace.xml
|
89
|
-
- spec/fixtures/product_no_namespace.xml
|
90
|
-
- spec/fixtures/product_single_namespace.xml
|
91
|
-
- spec/fixtures/quarters.xml
|
92
|
-
- spec/fixtures/radar.xml
|
93
|
-
- spec/fixtures/set_config_options.xml
|
94
|
-
- spec/fixtures/statuses.xml
|
95
|
-
- spec/fixtures/subclass_namespace.xml
|
96
|
-
- spec/fixtures/unformatted_address.xml
|
97
|
-
- spec/fixtures/wrapper.xml
|
98
|
-
- spec/happymapper/attribute_spec.rb
|
99
|
-
- spec/happymapper/element_spec.rb
|
100
|
-
- spec/happymapper/item_spec.rb
|
101
|
-
- spec/happymapper/text_node_spec.rb
|
102
|
-
- spec/happymapper_parse_spec.rb
|
103
|
-
- spec/happymapper_spec.rb
|
104
|
-
- spec/has_many_empty_array_spec.rb
|
105
|
-
- spec/ignay_spec.rb
|
106
|
-
- spec/inheritance_spec.rb
|
107
|
-
- spec/mixed_namespaces_spec.rb
|
108
|
-
- spec/parse_with_object_to_update_spec.rb
|
109
|
-
- spec/spec_helper.rb
|
110
|
-
- spec/to_xml_spec.rb
|
111
|
-
- spec/to_xml_with_namespaces_spec.rb
|
112
|
-
- spec/wilcard_tag_name_spec.rb
|
113
|
-
- spec/wrap_spec.rb
|
114
|
-
- spec/xpath_spec.rb
|
180
|
+
- lib/nokogiri-happymapper.rb
|
115
181
|
homepage: http://github.com/mvz/happymapper
|
116
182
|
licenses:
|
117
183
|
- MIT
|
118
|
-
metadata:
|
119
|
-
|
184
|
+
metadata:
|
185
|
+
rubygems_mfa_required: 'true'
|
186
|
+
post_install_message:
|
120
187
|
rdoc_options: []
|
121
188
|
require_paths:
|
122
189
|
- lib
|
@@ -124,63 +191,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
191
|
requirements:
|
125
192
|
- - ">="
|
126
193
|
- !ruby/object:Gem::Version
|
127
|
-
version:
|
194
|
+
version: 2.6.0
|
128
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
196
|
requirements:
|
130
197
|
- - ">="
|
131
198
|
- !ruby/object:Gem::Version
|
132
199
|
version: '0'
|
133
200
|
requirements: []
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
specification_version: 3
|
201
|
+
rubygems_version: 3.3.3
|
202
|
+
signing_key:
|
203
|
+
specification_version: 4
|
138
204
|
summary: Provides a simple way to map XML to Ruby Objects and back again.
|
139
|
-
test_files:
|
140
|
-
- spec/attribute_default_value_spec.rb
|
141
|
-
- spec/attributes_spec.rb
|
142
|
-
- spec/fixtures/address.xml
|
143
|
-
- spec/fixtures/ambigous_items.xml
|
144
|
-
- spec/fixtures/analytics.xml
|
145
|
-
- spec/fixtures/analytics_profile.xml
|
146
|
-
- spec/fixtures/atom.xml
|
147
|
-
- spec/fixtures/commit.xml
|
148
|
-
- spec/fixtures/current_weather.xml
|
149
|
-
- spec/fixtures/current_weather_missing_elements.xml
|
150
|
-
- spec/fixtures/default_namespace_combi.xml
|
151
|
-
- spec/fixtures/dictionary.xml
|
152
|
-
- spec/fixtures/family_tree.xml
|
153
|
-
- spec/fixtures/inagy.xml
|
154
|
-
- spec/fixtures/lastfm.xml
|
155
|
-
- spec/fixtures/multiple_namespaces.xml
|
156
|
-
- spec/fixtures/multiple_primitives.xml
|
157
|
-
- spec/fixtures/optional_attributes.xml
|
158
|
-
- spec/fixtures/pita.xml
|
159
|
-
- spec/fixtures/posts.xml
|
160
|
-
- spec/fixtures/product_default_namespace.xml
|
161
|
-
- spec/fixtures/product_no_namespace.xml
|
162
|
-
- spec/fixtures/product_single_namespace.xml
|
163
|
-
- spec/fixtures/quarters.xml
|
164
|
-
- spec/fixtures/radar.xml
|
165
|
-
- spec/fixtures/set_config_options.xml
|
166
|
-
- spec/fixtures/statuses.xml
|
167
|
-
- spec/fixtures/subclass_namespace.xml
|
168
|
-
- spec/fixtures/unformatted_address.xml
|
169
|
-
- spec/fixtures/wrapper.xml
|
170
|
-
- spec/happymapper/attribute_spec.rb
|
171
|
-
- spec/happymapper/element_spec.rb
|
172
|
-
- spec/happymapper/item_spec.rb
|
173
|
-
- spec/happymapper/text_node_spec.rb
|
174
|
-
- spec/happymapper_parse_spec.rb
|
175
|
-
- spec/happymapper_spec.rb
|
176
|
-
- spec/has_many_empty_array_spec.rb
|
177
|
-
- spec/ignay_spec.rb
|
178
|
-
- spec/inheritance_spec.rb
|
179
|
-
- spec/mixed_namespaces_spec.rb
|
180
|
-
- spec/parse_with_object_to_update_spec.rb
|
181
|
-
- spec/spec_helper.rb
|
182
|
-
- spec/to_xml_spec.rb
|
183
|
-
- spec/to_xml_with_namespaces_spec.rb
|
184
|
-
- spec/wilcard_tag_name_spec.rb
|
185
|
-
- spec/wrap_spec.rb
|
186
|
-
- spec/xpath_spec.rb
|
205
|
+
test_files: []
|
@@ -1,50 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe "Attribute Default Value" do
|
4
|
-
|
5
|
-
context "when given a default value" do
|
6
|
-
|
7
|
-
class Meal
|
8
|
-
include HappyMapper
|
9
|
-
tag 'meal'
|
10
|
-
attribute :type, String, :default => 'omnivore'
|
11
|
-
end
|
12
|
-
|
13
|
-
let(:subject) { Meal }
|
14
|
-
let(:default_meal_type) { 'omnivore' }
|
15
|
-
|
16
|
-
context "when no value has been specified" do
|
17
|
-
it "returns the default value" do
|
18
|
-
meal = subject.parse('<meal />')
|
19
|
-
expect(meal.type).to eq default_meal_type
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
context "when saving to xml" do
|
24
|
-
|
25
|
-
let(:expected_xml) { %{<?xml version="1.0"?>\n<meal/>\n} }
|
26
|
-
|
27
|
-
it "the default value is not included" do
|
28
|
-
meal = subject.new
|
29
|
-
expect(meal.to_xml).to eq expected_xml
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
context "when a new, non-nil value has been set" do
|
34
|
-
it "returns the new value" do
|
35
|
-
meal = subject.parse('<meal />')
|
36
|
-
meal.type = 'vegan'
|
37
|
-
|
38
|
-
expect(meal.type).to_not eq default_meal_type
|
39
|
-
end
|
40
|
-
|
41
|
-
let(:expected_xml) { %{<?xml version="1.0"?>\n<meal type="kosher"/>\n} }
|
42
|
-
|
43
|
-
it "saves the new value to the xml" do
|
44
|
-
meal = subject.new
|
45
|
-
meal.type = 'kosher'
|
46
|
-
expect(meal.to_xml).to eq expected_xml
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
data/spec/attributes_spec.rb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe "Attribute Method Conversion" do
|
4
|
-
|
5
|
-
let(:xml_document) do
|
6
|
-
%{<document>
|
7
|
-
<link data-src='http://cooking.com/roastbeef' type='recipe'>Roast Beef</link>
|
8
|
-
</document>}
|
9
|
-
end
|
10
|
-
|
11
|
-
module AttributeMethodConversion
|
12
|
-
class Document
|
13
|
-
include HappyMapper
|
14
|
-
|
15
|
-
has_many :link, String, :attributes => { :'data-src' => String, :type => String, :href => String }
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
let(:document) do
|
21
|
-
AttributeMethodConversion::Document.parse(xml_document,single: true)
|
22
|
-
end
|
23
|
-
|
24
|
-
it "link" do
|
25
|
-
expect(document.link).to eq ["Roast Beef"]
|
26
|
-
end
|
27
|
-
|
28
|
-
it "link.data_src" do
|
29
|
-
expect(document.link.first.data_src).to eq "http://cooking.com/roastbeef"
|
30
|
-
end
|
31
|
-
|
32
|
-
it "link.type" do
|
33
|
-
expect(document.link.first.type).to eq "recipe"
|
34
|
-
end
|
35
|
-
|
36
|
-
end
|
data/spec/fixtures/address.xml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<ambigous>
|
3
|
-
<my-items>
|
4
|
-
<item>
|
5
|
-
<name>My first item</name>
|
6
|
-
<item><name>My first internal item</name></item>
|
7
|
-
</item>
|
8
|
-
<item>
|
9
|
-
<name>My second item</name>
|
10
|
-
<item><name>My second internal item</name></item>
|
11
|
-
</item>
|
12
|
-
<item>
|
13
|
-
<name>My third item</name>
|
14
|
-
<item><name>My third internal item</name></item>
|
15
|
-
</item>
|
16
|
-
</my-items>
|
17
|
-
<others-items>
|
18
|
-
<item>
|
19
|
-
<name>Other item</name>
|
20
|
-
</item>
|
21
|
-
</others-items>
|
22
|
-
</ambigous>
|
data/spec/fixtures/analytics.xml
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<feed xmlns="http://www.w3.org/2005/Atom"
|
3
|
-
xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/"
|
4
|
-
xmlns:dxp="http://schemas.google.com/analytics/2009">
|
5
|
-
<id>http://www.google.com/analytics/feeds/accounts/nunemaker@gmail.com</id>
|
6
|
-
<updated>2009-04-22T23:21:23.000-07:00</updated>
|
7
|
-
<title type="text">Profile list for nunemaker@gmail.com</title>
|
8
|
-
<link rel="self" type="application/atom+xml"
|
9
|
-
href="http://www.google.com/analytics/feeds/accounts/default"/>
|
10
|
-
<author>
|
11
|
-
<name>Google Analytics</name>
|
12
|
-
</author>
|
13
|
-
<generator version="1.0">Google Analytics</generator>
|
14
|
-
<openSearch:totalResults>4</openSearch:totalResults>
|
15
|
-
<openSearch:startIndex>1</openSearch:startIndex>
|
16
|
-
<openSearch:itemsPerPage>4</openSearch:itemsPerPage>
|
17
|
-
<entry>
|
18
|
-
<id>http://www.google.com/analytics/feeds/accounts/ga:47912</id>
|
19
|
-
<updated>2008-11-24T12:11:32.000-08:00</updated>
|
20
|
-
<title type="text">addictedtonew.com</title>
|
21
|
-
<link rel="alternate" type="text/html" href="http://www.google.com/analytics"/>
|
22
|
-
<dxp:tableId>ga:47912</dxp:tableId>
|
23
|
-
<dxp:property name="ga:accountId" value="85301"/>
|
24
|
-
<dxp:property name="ga:accountName" value="addictedtonew.com"/>
|
25
|
-
<dxp:property name="ga:profileId" value="47912"/>
|
26
|
-
<dxp:property name="ga:webPropertyId" value="UA-85301-1"/>
|
27
|
-
</entry>
|
28
|
-
<entry>
|
29
|
-
<id>http://www.google.com/analytics/feeds/accounts/ga:1897579</id>
|
30
|
-
<updated>2008-11-24T12:11:32.000-08:00</updated>
|
31
|
-
<title type="text">railstips.org</title>
|
32
|
-
<link rel="alternate" type="text/html" href="http://www.google.com/analytics"/>
|
33
|
-
<dxp:tableId>ga:1897579</dxp:tableId>
|
34
|
-
<dxp:property name="ga:accountId" value="85301"/>
|
35
|
-
<dxp:property name="ga:accountName" value="addictedtonew.com"/>
|
36
|
-
<dxp:property name="ga:profileId" value="1897579"/>
|
37
|
-
<dxp:property name="ga:webPropertyId" value="UA-85301-7"/>
|
38
|
-
</entry>
|
39
|
-
<entry>
|
40
|
-
<id>http://www.google.com/analytics/feeds/accounts/ga:17132454</id>
|
41
|
-
<updated>2009-04-22T23:21:23.000-07:00</updated>
|
42
|
-
<title type="text">johnnunemaker.com</title>
|
43
|
-
<link rel="alternate" type="text/html" href="http://www.google.com/analytics"/>
|
44
|
-
<dxp:tableId>ga:17132454</dxp:tableId>
|
45
|
-
<dxp:property name="ga:accountId" value="85301"/>
|
46
|
-
<dxp:property name="ga:accountName" value="addictedtonew.com"/>
|
47
|
-
<dxp:property name="ga:profileId" value="17132454"/>
|
48
|
-
<dxp:property name="ga:webPropertyId" value="UA-85301-25"/>
|
49
|
-
</entry>
|
50
|
-
<entry>
|
51
|
-
<id>http://www.google.com/analytics/feeds/accounts/ga:17132478</id>
|
52
|
-
<updated>2009-04-22T23:21:23.000-07:00</updated>
|
53
|
-
<title type="text">harmonyapp.com</title>
|
54
|
-
<link rel="alternate" type="text/html" href="http://www.google.com/analytics"/>
|
55
|
-
<dxp:tableId>ga:17132478</dxp:tableId>
|
56
|
-
<dxp:property name="ga:accountId" value="85301"/>
|
57
|
-
<dxp:property name="ga:accountName" value="addictedtonew.com"/>
|
58
|
-
<dxp:property name="ga:profileId" value="17132478"/>
|
59
|
-
<dxp:property name="ga:webPropertyId" value="UA-85301-26"/>
|
60
|
-
</entry>
|
61
|
-
</feed>
|
@@ -1,127 +0,0 @@
|
|
1
|
-
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:dxp='http://schemas.google.com/analytics/2009' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/"CU4CSXo_cCp7I2A9Wx9RGU0."' gd:kind='analytics#accounts'>
|
2
|
-
<id>http://www.google.com/analytics/feeds/accounts/someuser@gmail.com</id>
|
3
|
-
<updated>2010-12-20T19:59:28.448-08:00</updated>
|
4
|
-
<title>Profile list for someuser@gmail.com</title>
|
5
|
-
<link rel='self' type='application/atom+xml' href='https://www.google.com/analytics/feeds/accounts/default'/>
|
6
|
-
<author>
|
7
|
-
<name>Google Analytics</name>
|
8
|
-
</author>
|
9
|
-
<generator version='1.0'>Google Analytics</generator>
|
10
|
-
<openSearch:totalResults>9</openSearch:totalResults>
|
11
|
-
<openSearch:startIndex>1</openSearch:startIndex>
|
12
|
-
<openSearch:itemsPerPage>9</openSearch:itemsPerPage>
|
13
|
-
<dxp:segment id='gaid::-1' name='All Visits'>
|
14
|
-
<dxp:definition> </dxp:definition>
|
15
|
-
</dxp:segment>
|
16
|
-
<dxp:segment id='gaid::-2' name='New Visitors'>
|
17
|
-
<dxp:definition>ga:visitorType==New Visitor</dxp:definition>
|
18
|
-
</dxp:segment>
|
19
|
-
<dxp:segment id='gaid::-3' name='Returning Visitors'>
|
20
|
-
<dxp:definition>ga:visitorType==Returning Visitor</dxp:definition>
|
21
|
-
</dxp:segment>
|
22
|
-
<dxp:segment id='gaid::-4' name='Paid Search Traffic'>
|
23
|
-
<dxp:definition>ga:medium==cpa,ga:medium==cpc,ga:medium==cpm,ga:medium==cpp,ga:medium==cpv,ga:medium==ppc</dxp:definition>
|
24
|
-
</dxp:segment>
|
25
|
-
<dxp:segment id='gaid::-5' name='Non-paid Search Traffic'>
|
26
|
-
<dxp:definition>ga:medium==organic</dxp:definition>
|
27
|
-
</dxp:segment>
|
28
|
-
<dxp:segment id='gaid::-6' name='Search Traffic'>
|
29
|
-
<dxp:definition>ga:medium==cpa,ga:medium==cpc,ga:medium==cpm,ga:medium==cpp,ga:medium==cpv,ga:medium==organic,ga:medium==ppc</dxp:definition>
|
30
|
-
</dxp:segment>
|
31
|
-
<dxp:segment id='gaid::-7' name='Direct Traffic'>
|
32
|
-
<dxp:definition>ga:medium==(none)</dxp:definition>
|
33
|
-
</dxp:segment>
|
34
|
-
<dxp:segment id='gaid::-8' name='Referral Traffic'>
|
35
|
-
<dxp:definition>ga:medium==referral</dxp:definition>
|
36
|
-
</dxp:segment>
|
37
|
-
<dxp:segment id='gaid::-9' name='Visits with Conversions'>
|
38
|
-
<dxp:definition>ga:goalCompletionsAll>0</dxp:definition>
|
39
|
-
</dxp:segment>
|
40
|
-
<dxp:segment id='gaid::-10' name='Visits with Transactions'>
|
41
|
-
<dxp:definition>ga:transactions>0</dxp:definition>
|
42
|
-
</dxp:segment>
|
43
|
-
<dxp:segment id='gaid::-11' name='Mobile Traffic'>
|
44
|
-
<dxp:definition>ga:isMobile==Yes</dxp:definition>
|
45
|
-
</dxp:segment>
|
46
|
-
<dxp:segment id='gaid::-12' name='Non-bounce Visits'>
|
47
|
-
<dxp:definition>ga:bounces==0</dxp:definition>
|
48
|
-
</dxp:segment>
|
49
|
-
<entry gd:etag='W/"CkENQXs9fip7I2A9Wx5SE0w."' gd:kind='analytics#account'>
|
50
|
-
<id>http://www.google.com/analytics/feeds/accounts/ga:123456</id>
|
51
|
-
<updated>2010-08-08T16:38:10.566-07:00</updated>
|
52
|
-
<title>www.homedepot.com</title>
|
53
|
-
<link rel='alternate' type='text/html' href='http://www.google.com/analytics'/>
|
54
|
-
<dxp:property name='ga:accountId' value='254087'/>
|
55
|
-
<dxp:property name='ga:accountName' value='www.homechefdepot.com'/>
|
56
|
-
<dxp:property name='ga:profileId' value='123456'/>
|
57
|
-
<dxp:property name='ga:webPropertyId' value='UA-254087-1'/>
|
58
|
-
<dxp:property name='ga:currency' value='USD'/>
|
59
|
-
<dxp:property name='ga:timezone' value='America/Los_Angeles'/>
|
60
|
-
<dxp:tableId>ga:123456</dxp:tableId>
|
61
|
-
</entry>
|
62
|
-
<entry gd:etag='W/"C0YESXcyfyp7I2A9Wx9SFkU."' gd:kind='analytics#account'>
|
63
|
-
<id>http://www.google.com/analytics/feeds/accounts/ga:8575980</id>
|
64
|
-
<updated>2010-12-06T16:18:28.997-08:00</updated>
|
65
|
-
<title>www.pda.org</title>
|
66
|
-
<link rel='alternate' type='text/html' href='http://www.google.com/analytics'/>
|
67
|
-
<dxp:property name='ga:accountId' value='4277553'/>
|
68
|
-
<dxp:property name='ga:accountName' value='www.pdma.org'/>
|
69
|
-
<dxp:property name='ga:profileId' value='8575980'/>
|
70
|
-
<dxp:property name='ga:webPropertyId' value='UA-4277553-1'/>
|
71
|
-
<dxp:property name='ga:currency' value='USD'/>
|
72
|
-
<dxp:property name='ga:timezone' value='America/Los_Angeles'/>
|
73
|
-
<dxp:tableId>ga:8575980</dxp:tableId>
|
74
|
-
</entry>
|
75
|
-
<entry gd:etag='W/"CU4CSXo_cCp7I2A9Wx9RGU0."' gd:kind='analytics#account'>
|
76
|
-
<id>http://www.google.com/analytics/feeds/accounts/ga:25620226</id>
|
77
|
-
<updated>2010-12-20T19:59:28.448-08:00</updated>
|
78
|
-
<title>business.com</title>
|
79
|
-
<link rel='alternate' type='text/html' href='http://www.google.com/analytics'/>
|
80
|
-
<dxp:property name='ga:accountId' value='12312214'/>
|
81
|
-
<dxp:property name='ga:accountName' value='business.com'/>
|
82
|
-
<dxp:property name='ga:profileId' value='25620226'/>
|
83
|
-
<dxp:property name='ga:webPropertyId' value='UA-12312214-1'/>
|
84
|
-
<dxp:property name='ga:currency' value='USD'/>
|
85
|
-
<dxp:property name='ga:timezone' value='America/Los_Angeles'/>
|
86
|
-
<dxp:tableId>ga:25620226</dxp:tableId>
|
87
|
-
</entry>
|
88
|
-
<entry gd:etag='W/"CU4CSX0yfCp7I2A9Wx9RGU0."' gd:kind='analytics#account'>
|
89
|
-
<id>http://www.google.com/analytics/feeds/accounts/ga:12123131</id>
|
90
|
-
<updated>2010-12-20T19:59:28.394-08:00</updated>
|
91
|
-
<title>blog.com</title>
|
92
|
-
<link rel='alternate' type='text/html' href='http://www.google.com/analytics'/>
|
93
|
-
<dxp:property name='ga:accountId' value='12312214'/>
|
94
|
-
<dxp:property name='ga:accountName' value='business.com'/>
|
95
|
-
<dxp:property name='ga:profileId' value='12123131'/>
|
96
|
-
<dxp:property name='ga:webPropertyId' value='UA-12345678-1'/>
|
97
|
-
<dxp:property name='ga:currency' value='USD'/>
|
98
|
-
<dxp:property name='ga:timezone' value='America/Los_Angeles'/>
|
99
|
-
<dxp:tableId>ga:12123131</dxp:tableId>
|
100
|
-
</entry>
|
101
|
-
<entry gd:etag='W/"DUMNQHk_fSp7I2A9Wx5bEE4."' gd:kind='analytics#account'>
|
102
|
-
<id>http://www.google.com/analytics/feeds/accounts/ga:37685582</id>
|
103
|
-
<updated>2010-10-25T13:11:31.745-07:00</updated>
|
104
|
-
<title>The Social</title>
|
105
|
-
<link rel='alternate' type='text/html' href='http://www.google.com/analytics'/>
|
106
|
-
<dxp:property name='ga:accountId' value='12312214'/>
|
107
|
-
<dxp:property name='ga:accountName' value='business.com'/>
|
108
|
-
<dxp:property name='ga:profileId' value='37685582'/>
|
109
|
-
<dxp:property name='ga:webPropertyId' value='UA-12312214-1'/>
|
110
|
-
<dxp:property name='ga:currency' value='USD'/>
|
111
|
-
<dxp:property name='ga:timezone' value='America/Los_Angeles'/>
|
112
|
-
<dxp:tableId>ga:37685582</dxp:tableId>
|
113
|
-
</entry>
|
114
|
-
<entry gd:etag='W/"DE8HR3o4eCp7I2A9Wx5UF0w."' gd:kind='analytics#account'>
|
115
|
-
<id>http://www.google.com/analytics/feeds/accounts/ga:38132423</id>
|
116
|
-
<updated>2010-10-21T20:07:16.430-07:00</updated>
|
117
|
-
<title>Skyline</title>
|
118
|
-
<link rel='alternate' type='text/html' href='http://www.google.com/analytics'/>
|
119
|
-
<dxp:property name='ga:accountId' value='12312214'/>
|
120
|
-
<dxp:property name='ga:accountName' value='business.com'/>
|
121
|
-
<dxp:property name='ga:profileId' value='38132423'/>
|
122
|
-
<dxp:property name='ga:webPropertyId' value='UA-12312214-1'/>
|
123
|
-
<dxp:property name='ga:currency' value='USD'/>
|
124
|
-
<dxp:property name='ga:timezone' value='America/Los_Angeles'/>
|
125
|
-
<dxp:tableId>ga:38132423</dxp:tableId>
|
126
|
-
</entry>
|
127
|
-
</feed>
|
data/spec/fixtures/atom.xml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
|
3
|
-
<id>tag:www.example.com,2005:/tv_shows</id>
|
4
|
-
<link rel="alternate" type="text/html" href="http://www.example.com"/>
|
5
|
-
<link rel="self" type="application/atom+xml" href="http://www.example.com/tv_shows.atom"/>
|
6
|
-
<title>TV Shows</title>
|
7
|
-
<updated>2011-07-08T13:47:01Z</updated>
|
8
|
-
<entry>
|
9
|
-
<id>tag:www.example.com,2005:TvShow/17</id>
|
10
|
-
<published>2011-07-08T13:47:01Z</published>
|
11
|
-
<updated>2011-07-08T13:47:01Z</updated>
|
12
|
-
<link rel="alternate" type="text/html" href="http://www.example.com/sources/channel-twenty-seven/tv_shows/name-goes-here.atom"/>
|
13
|
-
<title>Name goes here</title>
|
14
|
-
<content type="html">Name goes here (0 episodes)</content>
|
15
|
-
<author>
|
16
|
-
<name>Source URL goes here</name>
|
17
|
-
</author>
|
18
|
-
</entry>
|
19
|
-
</feed>
|
data/spec/fixtures/commit.xml
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<commit>
|
3
|
-
<removed type="array">
|
4
|
-
<removed>
|
5
|
-
<filename>commands.rb</filename>
|
6
|
-
</removed>
|
7
|
-
<removed>
|
8
|
-
<filename>helpers.rb</filename>
|
9
|
-
</removed>
|
10
|
-
</removed>
|
11
|
-
<added type="array">
|
12
|
-
<added>
|
13
|
-
<filename>commands/commands.rb</filename>
|
14
|
-
</added>
|
15
|
-
<added>
|
16
|
-
<filename>commands/helpers.rb</filename>
|
17
|
-
</added>
|
18
|
-
</added>
|
19
|
-
<message>move commands.rb and helpers.rb into commands/ dir</message>
|
20
|
-
<modified type="array">
|
21
|
-
<modified>
|
22
|
-
<diff>@@ -56,7 +56,7 @@ module GitHub
|
23
|
-
end
|
24
|
-
|
25
|
-
def load(file)
|
26
|
-
- file[0] == ?/ ? super : super(BasePath + "/#{file}")
|
27
|
-
+ file[0] == ?/ ? super : super(BasePath + "/commands/#{file}")
|
28
|
-
end
|
29
|
-
|
30
|
-
def debug(*messages)</diff>
|
31
|
-
<filename>lib/github.rb</filename>
|
32
|
-
</modified>
|
33
|
-
</modified>
|
34
|
-
<parents type="array">
|
35
|
-
<parent>
|
36
|
-
<id>d462d2a2e60438ded3dd9e8e6593ca4146c5a0ba</id>
|
37
|
-
</parent>
|
38
|
-
</parents>
|
39
|
-
<url>http://github.com/defunkt/github-gem/commit/c26d4ce9807ecf57d3f9eefe19ae64e75bcaaa8b</url>
|
40
|
-
<author>
|
41
|
-
<name>Chris Wanstrath</name>
|
42
|
-
<email>chris@ozmm.org</email>
|
43
|
-
</author>
|
44
|
-
<id>c26d4ce9807ecf57d3f9eefe19ae64e75bcaaa8b</id>
|
45
|
-
<committed-date>2008-03-02T16:45:41-08:00</committed-date>
|
46
|
-
<authored-date>2008-03-02T16:45:41-08:00</authored-date>
|
47
|
-
<tree>28a1a1ca3e663d35ba8bf07d3f1781af71359b76</tree>
|
48
|
-
<committer>
|
49
|
-
<name>Chris Wanstrath</name>
|
50
|
-
<email>chris@ozmm.org</email>
|
51
|
-
</committer>
|
52
|
-
</commit>
|