nationbuilder-rb 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/lib/nationbuilder.rb +1 -0
- data/lib/nationbuilder/paginator.rb +3 -2
- data/nationbuilder-rb.gemspec +4 -4
- data/spec/fixtures/delete.yml +17 -17
- data/spec/fixtures/paginated_get_page2.yml +177 -132
- data/spec/fixtures/paginated_get_page2_with_limit.yml +175 -0
- data/spec/fixtures/paginated_get_page3.yml +164 -225
- data/spec/fixtures/parametered_get.yml +41 -40
- data/spec/fixtures/parametered_post.yml +26 -29
- data/spec/nationbuilder_client_spec.rb +5 -4
- data/spec/nationbuilder_paginator_spec.rb +17 -2
- metadata +3 -3
- data/spec/fixtures/parametered_post_with_fire_webhooks_false.yml +0 -81
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfe35dbdcac4f626356820c15fec30ae8710d8f1
|
4
|
+
data.tar.gz: 17648a474f47cfba6e9d9cbb0374dfaf6635f308
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab6926ab92ed7208400f5d8c9f791815a6a10dd1460f1ece58573eada2b7d9c9abda34d40e3063aa5953e4e9e0b0871f4c5c6b2daf92932fe2a0c28504efff68
|
7
|
+
data.tar.gz: e0707a02500368bad07ca208bdcd6c9a20ddaee9aa7771f12a3f96734175e35d180bbb82a2b781547c55a0b9e405c988268f366c53bc31a1f0ba384545ce4806
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.5
|
data/lib/nationbuilder.rb
CHANGED
@@ -11,10 +11,11 @@ class NationBuilder::Paginator
|
|
11
11
|
@body[page_type.to_s]
|
12
12
|
end
|
13
13
|
|
14
|
-
define_method(:"#{page_type}") do
|
14
|
+
define_method(:"#{page_type}") do |call_body = {}|
|
15
15
|
return nil unless send(:"#{page_type}?")
|
16
16
|
path = send(:"#{page_type}?").split('/api/v1').last
|
17
|
-
|
17
|
+
call_body[:limit] ||= CGI.parse(path)['limit']
|
18
|
+
results = @client.raw_call(path, :get, call_body)
|
18
19
|
return self.class.new(@client, results)
|
19
20
|
end
|
20
21
|
end
|
data/nationbuilder-rb.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: nationbuilder-rb 1.3.
|
5
|
+
# stub: nationbuilder-rb 1.3.5 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "nationbuilder-rb"
|
9
|
-
s.version = "1.3.
|
9
|
+
s.version = "1.3.5"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["David Huie", "Alexandre Schmitt"]
|
14
|
-
s.date = "2015-08-
|
14
|
+
s.date = "2015-08-20"
|
15
15
|
s.description = "A Ruby client to the NationBuilder API"
|
16
16
|
s.email = "schmitt@nationbuilder.com"
|
17
17
|
s.executables = ["nbdoc"]
|
@@ -75,10 +75,10 @@ Gem::Specification.new do |s|
|
|
75
75
|
"nationbuilder-rb.gemspec",
|
76
76
|
"spec/fixtures/delete.yml",
|
77
77
|
"spec/fixtures/paginated_get_page2.yml",
|
78
|
+
"spec/fixtures/paginated_get_page2_with_limit.yml",
|
78
79
|
"spec/fixtures/paginated_get_page3.yml",
|
79
80
|
"spec/fixtures/parametered_get.yml",
|
80
81
|
"spec/fixtures/parametered_post.yml",
|
81
|
-
"spec/fixtures/parametered_post_with_fire_webhooks_false.yml",
|
82
82
|
"spec/nationbuilder_client_spec.rb",
|
83
83
|
"spec/nationbuilder_paginator_spec.rb",
|
84
84
|
"spec/spec_helper.rb",
|
data/spec/fixtures/delete.yml
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: delete
|
5
|
-
uri: https://organizeralexandreschmitt.nationbuilder.com/api/v1/people/
|
5
|
+
uri: https://organizeralexandreschmitt.nationbuilder.com/api/v1/people/278772?access_token=3695ca30a6e74401115ec2b68767b53112c32b5bedc3c1f34e72c9749419b2de
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: '{"access_token":"3695ca30a6e74401115ec2b68767b53112c32b5bedc3c1f34e72c9749419b2de"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- HTTPClient/1.0 (2.4.0, ruby 2.1.
|
11
|
+
- HTTPClient/1.0 (2.4.0, ruby 2.1.6 (2015-04-13))
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
14
|
Date:
|
15
|
-
-
|
15
|
+
- Sat, 15 Aug 2015 04:47:32 GMT
|
16
16
|
Content-Type:
|
17
17
|
- application/json
|
18
18
|
response:
|
@@ -23,22 +23,22 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- cloudflare-nginx
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Sat, 15 Aug 2015 04:47:33 GMT
|
27
27
|
Content-Length:
|
28
28
|
- '0'
|
29
29
|
Connection:
|
30
30
|
- keep-alive
|
31
31
|
Set-Cookie:
|
32
|
-
- __cfduid=
|
33
|
-
|
32
|
+
- __cfduid=d42490a2ee604dca87839bf96b959847e1439614052; expires=Sun, 14-Aug-16
|
33
|
+
04:47:32 GMT; path=/; domain=.nationbuilder.com; HttpOnly
|
34
34
|
Cache-Control:
|
35
35
|
- no-cache
|
36
36
|
Nation-Ratelimit-Limit:
|
37
|
-
-
|
37
|
+
- "-1"
|
38
38
|
Nation-Ratelimit-Remaining:
|
39
|
-
- '
|
39
|
+
- '0'
|
40
40
|
Nation-Ratelimit-Reset:
|
41
|
-
- '
|
41
|
+
- '1439683200'
|
42
42
|
Status:
|
43
43
|
- 204 No Content
|
44
44
|
X-Powered-By:
|
@@ -50,22 +50,22 @@ http_interactions:
|
|
50
50
|
X-Ratelimit-Limit:
|
51
51
|
- 10s
|
52
52
|
X-Ratelimit-Remaining:
|
53
|
-
- '
|
53
|
+
- '99'
|
54
54
|
X-Ratelimit-Reset:
|
55
|
-
- '
|
55
|
+
- '1439614062'
|
56
56
|
X-Request-Id:
|
57
|
-
-
|
57
|
+
- de2c475cfeda2a65dad5ebe3fe94397c
|
58
58
|
X-Runtime:
|
59
|
-
- '
|
59
|
+
- '1.144529'
|
60
60
|
X-Ua-Compatible:
|
61
61
|
- IE=Edge,chrome=1
|
62
62
|
Via:
|
63
63
|
- 1.1 nationbuilder.com
|
64
64
|
Cf-Ray:
|
65
|
-
-
|
65
|
+
- 216243135d032828-SJC
|
66
66
|
body:
|
67
67
|
encoding: UTF-8
|
68
68
|
string: ''
|
69
69
|
http_version:
|
70
|
-
recorded_at:
|
71
|
-
recorded_with: VCR 2.9.
|
70
|
+
recorded_at: Sat, 15 Aug 2015 04:47:34 GMT
|
71
|
+
recorded_with: VCR 2.9.3
|
@@ -2,17 +2,17 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://organizeralexandreschmitt.nationbuilder.com/api/v1/sites/organizeralexandreschmitt/pages/basic_pages?access_token=
|
5
|
+
uri: https://organizeralexandreschmitt.nationbuilder.com/api/v1/sites/organizeralexandreschmitt/pages/basic_pages?access_token=3695ca30a6e74401115ec2b68767b53112c32b5bedc3c1f34e72c9749419b2de&limit%5B%5D=11
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- HTTPClient/1.0 (2.4.0, ruby 2.1.
|
11
|
+
- HTTPClient/1.0 (2.4.0, ruby 2.1.6 (2015-04-13))
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
14
|
Date:
|
15
|
-
-
|
15
|
+
- Sat, 15 Aug 2015 05:50:10 GMT
|
16
16
|
Content-Type:
|
17
17
|
- application/json
|
18
18
|
response:
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- cloudflare-nginx
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Sat, 15 Aug 2015 05:50:11 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
Transfer-Encoding:
|
@@ -31,18 +31,18 @@ http_interactions:
|
|
31
31
|
Connection:
|
32
32
|
- keep-alive
|
33
33
|
Set-Cookie:
|
34
|
-
- __cfduid=
|
35
|
-
05:
|
34
|
+
- __cfduid=d7e472827125db5a4cbbe470dae3637641439617810; expires=Sun, 14-Aug-16
|
35
|
+
05:50:10 GMT; path=/; domain=.nationbuilder.com; HttpOnly
|
36
36
|
Cache-Control:
|
37
37
|
- max-age=0, private, must-revalidate
|
38
38
|
Etag:
|
39
|
-
- W/"
|
39
|
+
- W/"454ccb4475a508ed513c75bf22a46527"
|
40
40
|
Nation-Ratelimit-Limit:
|
41
|
-
-
|
41
|
+
- "-1"
|
42
42
|
Nation-Ratelimit-Remaining:
|
43
|
-
- '
|
43
|
+
- '0'
|
44
44
|
Nation-Ratelimit-Reset:
|
45
|
-
- '
|
45
|
+
- '1439683200'
|
46
46
|
Status:
|
47
47
|
- 200 OK
|
48
48
|
Vary:
|
@@ -58,134 +58,125 @@ http_interactions:
|
|
58
58
|
X-Ratelimit-Remaining:
|
59
59
|
- '99'
|
60
60
|
X-Ratelimit-Reset:
|
61
|
-
- '
|
61
|
+
- '1439617820'
|
62
62
|
X-Request-Id:
|
63
|
-
-
|
63
|
+
- aab1c46c861677ddde1e699124c75820
|
64
64
|
X-Runtime:
|
65
|
-
- '0.
|
65
|
+
- '0.627388'
|
66
66
|
X-Ua-Compatible:
|
67
67
|
- IE=Edge,chrome=1
|
68
68
|
Via:
|
69
69
|
- 1.1 nationbuilder.com
|
70
70
|
Cf-Ray:
|
71
|
-
-
|
71
|
+
- 21629ed4537b28ac-SJC
|
72
72
|
body:
|
73
73
|
encoding: UTF-8
|
74
|
-
string:
|
75
|
-
howto videos
|
76
|
-
|
77
|
-
for specific variables available in NationBuilder, check
|
78
|
-
training
|
79
|
-
|
80
|
-
dir
|
81
|
-
dir
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
dir
|
86
|
-
dir
|
87
|
-
|
88
|
-
dir
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
dir
|
95
|
-
|
96
|
-
dir
|
97
|
-
|
98
|
-
dir
|
99
|
-
|
100
|
-
dir
|
101
|
-
|
102
|
-
dir
|
103
|
-
dir
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
dir
|
109
|
-
|
110
|
-
|
111
|
-
dir
|
112
|
-
|
113
|
-
dir
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
dir
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
dir
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
style
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
style=\\\"background-color:#FF8C00\\\"\\u003ENested table\\u003C/span\\u003E\\u003C/caption\\u003E\\r\\n\\t\\t\\t\\t\\u003Ctbody\\u003E\\n\\u003Ctr\\u003E\\n\\u003Ctd\\u003E\\u003Cspan
|
166
|
-
style=\\\"background-color:#FF8C00\\\"\\u003E\\u00a0Cell 1\\u003C/span\\u003E\\u003C/td\\u003E\\r\\n\\t\\t\\t\\t\\t\\t\\u003Ctd\\u003E2\\u003C/td\\u003E\\r\\n\\t\\t\\t\\t\\t\\u003C/tr\\u003E\\n\\u003Ctr\\u003E\\n\\u003Ctd\\u003E3\\u003C/td\\u003E\\r\\n\\t\\t\\t\\t\\t\\t\\u003Ctd\\u003E4\\u003C/td\\u003E\\r\\n\\t\\t\\t\\t\\t\\u003C/tr\\u003E\\n\\u003Ctr\\u003E\\n\\u003Ctd\\u003E\\r\\n\\t\\t\\t\\t\\t\\t\\u003Cp\\u003E5\\u00a0\\u003Cimg
|
167
|
-
alt=\\\"\\\" src=\\\"http://d3n8a8pro7vhmx.cloudfront.net/organizeralexandreschmitt/pages/144/attachments/original/1400886485/dogecoin_logo_large_verge_medium_landscape.png?1400886485\\\"
|
168
|
-
style=\\\"border-style:solid; border-width:2px; float:left; height:123px;
|
169
|
-
margin:2px 4px; width:200px\\\"\\u003E\\u003C/p\\u003E\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\u003Cp\\u003E\\u00a0\\u003C/p\\u003E\\r\\n\\t\\t\\t\\t\\t\\t\\u003C/td\\u003E\\r\\n\\t\\t\\t\\t\\t\\t\\u003Ctd\\u003E6\\u003C/td\\u003E\\r\\n\\t\\t\\t\\t\\t\\u003C/tr\\u003E\\n\\u003C/tbody\\u003E\\n\\u003C/table\\u003E\\n\\u003Cp\\u003E\\u00a0\\u003C/p\\u003E\\r\\n\\t\\t\\t\\u003C/td\\u003E\\r\\n\\t\\t\\t\\u003Ctd\\u003E1\\u003C/td\\u003E\\r\\n\\t\\t\\u003C/tr\\u003E\\n\\u003Ctr\\u003E\\n\\u003Ctd\\u003E\\u00a0\\u003C/td\\u003E\\r\\n\\t\\t\\t\\u003Ctd\\u003E1\\u003C/td\\u003E\\r\\n\\t\\t\\u003C/tr\\u003E\\n\\u003Ctr\\u003E\\n\\u003Ctd\\u003E\\u00a0\\u003C/td\\u003E\\r\\n\\t\\t\\t\\u003Ctd\\u003E2\\u003C/td\\u003E\\r\\n\\t\\t\\u003C/tr\\u003E\\n\\u003C/tbody\\u003E\\u003C/table\\u003E\\u003Cp\\u003ENotes:\\u003Cbr\\u003E\\u003Cbr\\u003E\\r\\nSaving
|
170
|
-
images in tables removes the image (linked image) FIXED\\u003C/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003ELinked
|
171
|
-
images in content area do not appear \\u003Cs\\u003EFIXED\\u003C/s\\u003E\\u00a0worked
|
172
|
-
for a moment, then went back to dropping the image when saving\\u003C/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003ECannot
|
173
|
-
compare auto saved versions side-by-side (when prompted)\\u003C/p\\u003E\\r\\n\\r\\n\\u003Cp\\u003E\\u0026lt;ul\\u0026gt;
|
74
|
+
string: '{"results":[{"slug":"liquid_howto_videos","path":"/liquid_howto_videos","status":"published","site_slug":"organizeralexandreschmitt","name":"Liquid
|
75
|
+
howto videos","headline":"Liquid howto videos","title":"Liquid howto videos
|
76
|
+
- Matt''s General Store","excerpt":"","author_id":79278,"published_at":"2014-08-20T20:48:13Z","external_id":null,"tags":[],"id":27,"content":"\u003Cp\u003Ehttps://www.youtube.com/watch?v=tZLTExLukSg\u003C/p\u003E\r\n\u003Cp\u003Ehttps://www.youtube.com/watch?v=u8IPLtBtKcc\u003C/p\u003E\r\n\u003Cp\u003Ehttps://www.youtube.com/watch?v=ZqO5AwwLw5I\u003C/p\u003E\r\n\u003Cp\u003E(note:
|
77
|
+
for specific variables available in NationBuilder, check \u003Ca href=\"http://nationbuilder.com/request_variables\"\u003Ehere\u003C/a\u003E)\u003C/p\u003E"},{"slug":"liquid_training_2014","path":"/liquid_training_2014","status":"published","site_slug":"organizeralexandreschmitt","name":"Liquid
|
78
|
+
training","headline":"Liquid training","title":"Liquid training - Matt''s
|
79
|
+
General Store","excerpt":"","author_id":79278,"published_at":"2014-08-20T20:35:10Z","external_id":null,"tags":[],"id":26,"content":"\u003Col\u003E\n\u003Cli
|
80
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003EExpectations\u003C/p\u003E\r\n\u003Col\u003E\n\u003Cli
|
81
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003EThat you have a basic understanding
|
82
|
+
of html and scss, and you\u2019ve probably seen/delt with liquid already but
|
83
|
+
would like to know more about things that can be done with it.\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003Cli
|
84
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003EWhat we\u2019re covering today\u003C/p\u003E\r\n\u003Col\u003E\n\u003Cli
|
85
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003EWhat exactly liquid is\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003Cli
|
86
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003EHow we use it\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003Cli
|
87
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003EExamples of live liquid actions\u003C/p\u003E\r\n\u003Col\u003E\n\u003Cli
|
88
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003ECalling blog entries to the
|
89
|
+
front page of a website (or other pages)\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003Cli
|
90
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003ECustom fields - how they work
|
91
|
+
and how they can be used\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003Cli dir=\"ltr\"\u003E\r\n\u003Cp
|
92
|
+
dir=\"ltr\"\u003EAdding a Twitter widget to our website that will dynamically
|
93
|
+
pull in the broadcaster info\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003Cli
|
94
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003ELimiting page views by tags
|
95
|
+
on a profile\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003Cli dir=\"ltr\"\u003E\r\n\u003Cp
|
96
|
+
dir=\"ltr\"\u003EWalk sheets, and mastering some awesomeness there\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003Cli
|
97
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003ELiquid for emails\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003C/ol\u003E\n\u003C/li\u003E\r\n\u003Cli
|
98
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003EQuestions\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003C/ol\u003E\n\u003C/li\u003E\r\n\u003C/ol\u003E\n\u003C/li\u003E\r\n\u003Cli
|
99
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003EWhat is Liquid?\u003C/p\u003E\r\n\u003Col\u003E\n\u003Cli
|
100
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003EOpen source, ruby based, template
|
101
|
+
language - created by \u003Ca href=\"http://www.shopify.com/\"\u003EShopify\u003C/a\u003E\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003Cli
|
102
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003ELink to github: \u003Ca href=\"https://github.com/Shopify/liquid\"\u003Ehttps://github.com/Shopify/liquid\u003C/a\u003E\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003C/ol\u003E\n\u003C/li\u003E\r\n\u003Cli
|
103
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003EWhy is it so awesome?\u003C/p\u003E\r\n\u003Col\u003E\n\u003Cli
|
104
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003EBecause it allows for a more
|
105
|
+
dynamic experience, both for users and for visitors to websites built on NationBuilder.\u003C/p\u003E\r\n\u003Col\u003E\n\u003Cli
|
106
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003EExample - limited pageviews
|
107
|
+
to only signed in, members, etc.\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003Cli
|
108
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003EExample - custom walk list\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003C/ol\u003E\n\u003C/li\u003E\r\n\u003C/ol\u003E\n\u003C/li\u003E\r\n\u003Cli
|
109
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003EHow does it do that?\u003C/p\u003E\r\n\u003Col\u003E\n\u003Cli
|
110
|
+
dir=\"ltr\"\u003E\r\n\u003Cp dir=\"ltr\"\u003E\u003Ca href=\"http://nationbuilder.com/liquid_basics#tags\"\u003ETags\u003C/a\u003E
|
111
|
+
{% %} =\u0026gt; logic\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003Cli dir=\"ltr\"\u003E\r\n\u003Cp
|
112
|
+
dir=\"ltr\"\u003E\u003Ca href=\"http://nationbuilder.com/liquid_basics#output\"\u003EObjects\u003C/a\u003E
|
113
|
+
{{ }} =\u0026gt; attributes\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003Cli dir=\"ltr\"\u003E\r\n\u003Cp
|
114
|
+
dir=\"ltr\"\u003E\u003Ca href=\"http://nationbuilder.com/liquid_basics#filter\"\u003EFilters\u003C/a\u003E
|
115
|
+
{{ | }} =\u0026gt; modify output\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003C/ol\u003E\n\u003C/li\u003E\r\n\u003Cli\u003EExercises\u003Col\u003E\n\u003Cli\u003ECreate
|
116
|
+
a basic page\u003Col\u003E\n\u003Cli dir=\"ltr\"\u003ESet it so that you have
|
117
|
+
to be either tagged with \"WooHoo\" to be able to see the {{ page.content
|
118
|
+
}}, otherwise come up with something else creative to show...\u003C/li\u003E\r\n\u003Cli
|
119
|
+
dir=\"ltr\"\u003EExtra credit: If the site visitor isn''t tagged to be able
|
120
|
+
to see the page, show a link to a volunteer page that will automatically tag
|
121
|
+
them and then redirect back to the page.\u003C/li\u003E\r\n\u003C/ol\u003E\n\u003C/li\u003E\r\n\u003Cli\u003ECreate
|
122
|
+
a signup page with a custom field\u003C/li\u003E\r\n\u003Cli\u003ECreate a
|
123
|
+
custom walksheet\u003C/li\u003E\r\n\u003Cli\u003ECreate a custom email theme
|
124
|
+
template\u003C/li\u003E\r\n\u003C/ol\u003E\n\u003C/li\u003E\r\n\u003Cli dir=\"ltr\"\u003E\r\n\u003Cp
|
125
|
+
dir=\"ltr\"\u003EQ\u0026amp;A/Debrief\u003C/p\u003E\r\n\u003C/li\u003E\r\n\u003C/ol\u003E\u003Cp\u003E\u00a0\u003C/p\u003E\r\n\u003Cp\u003EResources\u003C/p\u003E\r\n\u003Col\u003E\n\u003Cli
|
126
|
+
dir=\"ltr\"\u003E\u003Ca href=\"http://www.mattsgeneralstore.com/liquid_howto_videos\"\u003EVideos\u003C/a\u003E\u003C/li\u003E\r\n\u003Cli
|
127
|
+
dir=\"ltr\"\u003E\u003Ca href=\"http://docs.shopify.com/themes/liquid-documentation/basics\"\u003EShopify
|
128
|
+
documentation\u003C/a\u003E\u003C/li\u003E\r\n\u003Cli dir=\"ltr\"\u003E\u003Ca
|
129
|
+
href=\"http://nationbuilder.com/request_variables\"\u003ENationBuilder documentation\u003C/a\u003E\u003C/li\u003E\r\n\u003Cli
|
130
|
+
dir=\"ltr\"\u003E\u003Ca href=\"https://github.com/codealchemy/codedump\"\u003EGithub
|
131
|
+
(repo for tips and tricks)\u003C/a\u003E\u003C/li\u003E\r\n\u003C/ol\u003E"},{"slug":"custom_membership_page","path":"/custom_membership_page","status":"unlisted","site_slug":"organizeralexandreschmitt","name":"Custom
|
132
|
+
membership page","headline":"Custom membership page","title":"Custom membership
|
133
|
+
page - Matt''s General Store","excerpt":null,"author_id":79278,"published_at":null,"external_id":null,"tags":[],"id":25,"content":null},{"slug":"basic_home_page","path":"/basic_home_page","status":"archived","site_slug":"organizeralexandreschmitt","name":"Basic
|
134
|
+
home page","headline":"Basic home page","title":"Basic home page - Matt''s
|
135
|
+
General Store","excerpt":null,"author_id":79278,"published_at":null,"external_id":null,"tags":[],"id":21,"content":null},{"slug":"new_page","path":"/new_page","status":"archived","site_slug":"organizeralexandreschmitt","name":"New
|
136
|
+
page","headline":"New page","title":"New page - Matt''s General Store","excerpt":"","author_id":79278,"published_at":null,"external_id":null,"tags":[],"id":20,"content":"\u003Cblockquote\u003E\r\n\u003Cp\u003E\u003Cspan
|
137
|
+
style=\"background-color:rgb(204, 204, 221); color:rgb(0, 0, 0)\"\u003EWe
|
138
|
+
can dance if we want to\u003C/span\u003E\u003Cbr\u003E\u003Cspan style=\"background-color:rgb(204,
|
139
|
+
204, 221); color:rgb(0, 0, 0)\"\u003EWe can leave your friends behind\u003C/span\u003E\u003Cbr\u003E\u003Cspan
|
140
|
+
style=\"background-color:rgb(204, 204, 221); color:rgb(0, 0, 0)\"\u003E''Cause
|
141
|
+
your friends don''t dance and if they don''t dance\u003C/span\u003E\u003Cbr\u003E\u003Cspan
|
142
|
+
style=\"background-color:rgb(204, 204, 221); color:rgb(0, 0, 0)\"\u003EWell,
|
143
|
+
they''re no friends of mine\u003C/span\u003E\u003C/p\u003E\r\n\u003C/blockquote\u003E\r\n\r\n\u003Cp\u003Ehttp://www.youtube.com/watch?v=AjPau5QYtYs\u003C/p\u003E\r\n\r\n\u003Cp\u003E\u003Cimg
|
144
|
+
alt=\"\" src=\"http://d3n8a8pro7vhmx.cloudfront.net/themes/521f7ca578c2723d84000002/attachments/original/1370903749/ph-hiring.png?1370903749\"
|
145
|
+
style=\"height:106px; width:108px\"\u003E\u003Cimg alt=\"\" src=\"http://tippvet.com/wp-content/uploads/2013/05/cat-vet.jpg\"
|
146
|
+
style=\"height:150px; width:200px\"\u003E\u003C/p\u003E\r\n\r\n\u003Cp\u003E\u003Cbr\u003E\r\nThis
|
147
|
+
is awesome!!!\u00a0\u20ac\u00d0\u00a0\u003Ca id=\"Delta Gamma\" name=\"Delta%20Gamma\"\u003E\u003C/a\u003E\u00a0\u003C/p\u003E\r\n\r\n\u003Cul\u003E\n\u003Cli\u003Eitem
|
148
|
+
1\u003C/li\u003E\r\n\t\u003Cli\u003E2\u003C/li\u003E\r\n\t\u003Cli\u003E3\u003C/li\u003E\r\n\t\u003Cli\u003E4\u003C/li\u003E\r\n\t\u003Cli\u003Ecool
|
149
|
+
beans\u003C/li\u003E\r\n\t\u003Cli\u003E\n\u003Cspan style=\"color:#A52A2A\"\u003Eawesomesauce\u003C/span\u003E\r\n\t\u003Chr\u003E\n\u003Cblockquote\u003E\r\n\t\u003Cp\u003EOne
|
150
|
+
for all, all for one\u003C/p\u003E\r\n\t\u003C/blockquote\u003E\r\n\t\u003C/li\u003E\r\n\u003C/ul\u003E\u003Col\u003E\n\u003Cli\u003Eone\u003C/li\u003E\r\n\t\u003Cli\u003Etwo\u003C/li\u003E\r\n\t\u003Cli\u003Ethree\u003C/li\u003E\r\n\u003C/ol\u003E\u003Cp\u003EIndent\u003C/p\u003E\r\n\r\n\u003Cp\u003E\u003Ca
|
151
|
+
href=\"google.com\"\u003E\u003Cimg alt=\"\" src=\"http://d3n8a8pro7vhmx.cloudfront.net/organizeralexandreschmitt/pages/144/attachments/original/1400886485/dogecoin_logo_large_verge_medium_landscape.png?1400886485\"\u003E\u003C/a\u003E\u003C/p\u003E\r\n\r\n\u003Chr\u003E\u003Cp\u003EIndent\u003C/p\u003E\r\n\r\n\u003Cp\u003EIndent
|
152
|
+
(can''t do indents)\u003C/p\u003E\r\n\r\n\u003Cp\u003EStyle \u003Cstrong\u003Ebold\u003C/strong\u003E,
|
153
|
+
\u003Cem\u003Eitalics\u003C/em\u003E, \u003Cs\u003Estrikethrough\u003C/s\u003E,
|
154
|
+
remove formatting\u003C/p\u003E\r\n\r\n\u003Ctable border=\"1\" style=\"width:100%\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\n\u003Ctd\u003E\r\n\t\t\t\u003Ctable
|
155
|
+
align=\"center\" border=\"1\" style=\"width:500px\"\u003E\n\u003Ccaption\u003E\u003Cspan
|
156
|
+
style=\"background-color:#FF8C00\"\u003ENested table\u003C/span\u003E\u003C/caption\u003E\r\n\t\t\t\t\u003Ctbody\u003E\n\u003Ctr\u003E\n\u003Ctd\u003E\u003Cspan
|
157
|
+
style=\"background-color:#FF8C00\"\u003E\u00a0Cell 1\u003C/span\u003E\u003C/td\u003E\r\n\t\t\t\t\t\t\u003Ctd\u003E2\u003C/td\u003E\r\n\t\t\t\t\t\u003C/tr\u003E\n\u003Ctr\u003E\n\u003Ctd\u003E3\u003C/td\u003E\r\n\t\t\t\t\t\t\u003Ctd\u003E4\u003C/td\u003E\r\n\t\t\t\t\t\u003C/tr\u003E\n\u003Ctr\u003E\n\u003Ctd\u003E\r\n\t\t\t\t\t\t\u003Cp\u003E5\u00a0\u003Cimg
|
158
|
+
alt=\"\" src=\"http://d3n8a8pro7vhmx.cloudfront.net/organizeralexandreschmitt/pages/144/attachments/original/1400886485/dogecoin_logo_large_verge_medium_landscape.png?1400886485\"
|
159
|
+
style=\"border-style:solid; border-width:2px; float:left; height:123px; margin:2px
|
160
|
+
4px; width:200px\"\u003E\u003C/p\u003E\r\n\r\n\t\t\t\t\t\t\u003Cp\u003E\u00a0\u003C/p\u003E\r\n\t\t\t\t\t\t\u003C/td\u003E\r\n\t\t\t\t\t\t\u003Ctd\u003E6\u003C/td\u003E\r\n\t\t\t\t\t\u003C/tr\u003E\n\u003C/tbody\u003E\n\u003C/table\u003E\n\u003Cp\u003E\u00a0\u003C/p\u003E\r\n\t\t\t\u003C/td\u003E\r\n\t\t\t\u003Ctd\u003E1\u003C/td\u003E\r\n\t\t\u003C/tr\u003E\n\u003Ctr\u003E\n\u003Ctd\u003E\u00a0\u003C/td\u003E\r\n\t\t\t\u003Ctd\u003E1\u003C/td\u003E\r\n\t\t\u003C/tr\u003E\n\u003Ctr\u003E\n\u003Ctd\u003E\u00a0\u003C/td\u003E\r\n\t\t\t\u003Ctd\u003E2\u003C/td\u003E\r\n\t\t\u003C/tr\u003E\n\u003C/tbody\u003E\u003C/table\u003E\u003Cp\u003ENotes:\u003Cbr\u003E\u003Cbr\u003E\r\nSaving
|
161
|
+
images in tables removes the image (linked image) FIXED\u003C/p\u003E\r\n\r\n\u003Cp\u003ELinked
|
162
|
+
images in content area do not appear \u003Cs\u003EFIXED\u003C/s\u003E\u00a0worked
|
163
|
+
for a moment, then went back to dropping the image when saving\u003C/p\u003E\r\n\r\n\u003Cp\u003ECannot
|
164
|
+
compare auto saved versions side-by-side (when prompted)\u003C/p\u003E\r\n\r\n\u003Cp\u003E\u0026lt;ul\u0026gt;
|
174
165
|
inheriting styling from theme.scss - removing bullets (Theme issue, not WYSIWYG
|
175
|
-
issue)
|
176
|
-
|
177
|
-
has a
|
178
|
-
styling other than an indentation
|
179
|
-
not functioning
|
180
|
-
|
181
|
-
|
182
|
-
releases
|
183
|
-
|
184
|
-
Capital
|
185
|
-
|
186
|
-
- Matt's General Store
|
187
|
-
Game
|
188
|
-
- Matt's General Store
|
166
|
+
issue)\u003C/p\u003E\r\n\r\n\u003Cp\u003E\u0026lt;ol\u0026gt; inherting styling
|
167
|
+
from theme.scss - removing numbering FIXED\u003C/p\u003E\r\n\r\n\u003Cp\u003E\u0026lt;blockquote\u0026gt;
|
168
|
+
has a \u0026lt;p\u0026gt; with the text nested in it - doesn''t seem to affect
|
169
|
+
styling other than an indentation\u003C/p\u003E\r\n\r\n\u003Cp\u003Eembed.ly
|
170
|
+
not functioning\u003C/p\u003E\r\n\r\n\u003Cp\u003Eunable to upload image/files
|
171
|
+
from WYSIWYG editor (unsure if this is going to be added functionality or
|
172
|
+
not)\u003C/p\u003E"},{"slug":"press_releases","path":"/press_releases","status":"published","site_slug":"organizeralexandreschmitt","name":"Press
|
173
|
+
releases","headline":"Press releases","title":"Press releases - Matt''s General
|
174
|
+
Store","excerpt":null,"author_id":79278,"published_at":"2014-05-12T04:29:11Z","external_id":null,"tags":[],"id":19,"content":null},{"slug":"social_capital","path":"/social_capital","status":"published","site_slug":"organizeralexandreschmitt","name":"Social
|
175
|
+
Capital","headline":"Social Capital","title":"Social Capital - Matt''s General
|
176
|
+
Store","excerpt":null,"author_id":79278,"published_at":"2014-04-26T00:35:00Z","external_id":null,"tags":[],"id":17,"content":null},{"slug":"crowdhall","path":"/crowdhall","status":"archived","site_slug":"organizeralexandreschmitt","name":"CrowdHall","headline":"CrowdHall","title":"CrowdHall
|
177
|
+
- Matt''s General Store","excerpt":null,"author_id":79278,"published_at":null,"external_id":null,"tags":[],"id":16,"content":null},{"slug":"the_game","path":"/the_game","status":"expired","site_slug":"organizeralexandreschmitt","name":"The
|
178
|
+
Game","headline":"The Game","title":"The Game - Matt''s General Store","excerpt":null,"author_id":79278,"published_at":null,"external_id":null,"tags":[],"id":15,"content":null},{"slug":"members","path":"/members","status":"archived","site_slug":"organizeralexandreschmitt","name":"Members","headline":"Members","title":"Members
|
179
|
+
- Matt''s General Store","excerpt":"","author_id":79278,"published_at":null,"external_id":null,"tags":[],"id":13,"content":"\u003Cp\u003EBacon
|
189
180
|
ipsum dolor sit amet flank swine turducken ball tip short loin hamburger beef
|
190
181
|
ribs beef biltong boudin. Doner short loin venison frankfurter cow prosciutto
|
191
182
|
tri-tip pork belly boudin t-bone meatloaf tenderloin tail. Tail ribeye salami
|
@@ -193,13 +184,67 @@ http_interactions:
|
|
193
184
|
Frankfurter beef ribs tenderloin ball tip porchetta sirloin. Shoulder capicola
|
194
185
|
porchetta frankfurter corned beef prosciutto tri-tip ribeye pork chop chuck.
|
195
186
|
Bresaola short ribs t-bone meatball beef, tail turkey bacon sausage filet
|
196
|
-
mignon doner. Flank tri-tip pastrami fatback landjaeger ball tip
|
187
|
+
mignon doner. Flank tri-tip pastrami fatback landjaeger ball tip.\u003C/p\u003E\r\n\u003Cp\u003EPancetta
|
197
188
|
sausage brisket turducken frankfurter, pastrami tri-tip ribeye. Ham pastrami
|
198
189
|
bresaola ribeye, turkey porchetta corned beef swine jowl tongue meatball ball
|
199
190
|
tip. Pork loin short ribs shoulder flank strip steak tail tongue porchetta
|
200
191
|
hamburger ball tip pastrami venison beef ribs. Swine prosciutto pork chop
|
201
192
|
kevin fatback landjaeger. Bresaola filet mignon landjaeger meatball drumstick
|
202
|
-
ham hock rump. Ribeye pig chicken salami kevin
|
193
|
+
ham hock rump. Ribeye pig chicken salami kevin.\u003C/p\u003E"},{"slug":"discounts_to_dividends","path":"/discounts_to_dividends","status":"published","site_slug":"organizeralexandreschmitt","name":"Discounts
|
194
|
+
to Dividends","headline":"Discounts to Dividends","title":"Discounts to Dividends
|
195
|
+
- Matt''s General Store","excerpt":"Learn more about what our member-owner
|
196
|
+
program is about, and how it can benefit you.","author_id":79278,"published_at":"2013-12-14T04:05:41Z","external_id":null,"tags":[],"id":9,"content":"\u003Cp
|
197
|
+
align=\"left\"\u003EPart of what separates consumer Co-ops from other businesses
|
198
|
+
is that Co-ops return their profits to owners in proportion to how much they
|
199
|
+
patronize the business. Most co-operatives throughout the world (including
|
200
|
+
REI, Organic Valley, and most natural foods co-ops) do this through a system
|
201
|
+
called Patronage Dividends. Since 1988, the Lexington Co-operative Market
|
202
|
+
has returned profits to our owners before we made them, in the form of discounts
|
203
|
+
at the registers. Patronage dividends provide the co-op with the opportunity
|
204
|
+
to offer a greater number of services to owners, our community and our future.\u003C/p\u003E\r\n\u003Ch3
|
205
|
+
align=\"left\"\u003Ehere\u2019s how dividends work:\u003C/h3\u003E\r\n\u003Cp
|
206
|
+
align=\"left\"\u003EThe Co-op provides its owners with a great grocery store.
|
207
|
+
Every owner purchase is recorded at the registers. When the Co-op is profitable,
|
208
|
+
the Board and management review plans and obligations, and decide on how much
|
209
|
+
of the profit to reinvest in the Co-op. The money that is not needed to reinvest
|
210
|
+
in the business is returned to the owners in the form of store credit or (if
|
211
|
+
requested) a check. Each owner\u2019s patronage dividend is based on the amount
|
212
|
+
of their purchases over the fiscal year (July 1- June 30.)\u003C/p\u003E\r\n\u003Cp
|
213
|
+
align=\"left\"\u003E\u003Cimg class=\"leftOffest\" style=\"display: block;
|
214
|
+
margin-left: auto; margin-right: auto;\" src=\"http://lexington.coop/media/patronage/diagram.jpg\"
|
215
|
+
alt=\"The Board decides which profits to reinvest in store and which to return
|
216
|
+
to owners.\" width=\"300\" height=\"371\"\u003E\u003C/p\u003E\r\n\u003Ch3
|
217
|
+
align=\"left\"\u003EDividends are exciting, sustainable and flexible. Discounts
|
218
|
+
are not.\u003C/h3\u003E\r\n\u003Cul\u003E\n\u003Cli\u003E\n\u003Cstrong\u003EExciting\u003C/strong\u003E:
|
219
|
+
Few if any owners of the Co-op express excitement at receiving their 2% discount.
|
220
|
+
At Co-ops that use Patronage Dividends, owners express excitement when they
|
221
|
+
get their dividend notice and see how they have helped to contribute to the
|
222
|
+
success of the business they own.\u003C/li\u003E\r\n\u003Cli\u003E\n\u003Cstrong\u003ESustainable\u003C/strong\u003E:
|
223
|
+
Discounts distribute profits to owners before we make them. The Co-op has
|
224
|
+
been profitable in just 5 of the 20 years since the Co-op has been giving
|
225
|
+
a basic member discount at the register. Dividends allow the Co-op to be profitable
|
226
|
+
and to reinvest those profits into services that meet owner\u2019s needs and
|
227
|
+
impact the world on their behalf.\u003C/li\u003E\r\n\u003Cli\u003E\n\u003Cstrong\u003EFlexible\u003C/strong\u003E.
|
228
|
+
The discount level does not change based on the performance of the Co-op or
|
229
|
+
the changing needs of the owners. With dividends, every year the board decides
|
230
|
+
whether to return profits to owners or to reinvest them in improving services.
|
231
|
+
\u003Cbr\u003E Dividends give the Co-op a tax advantage. \u003Cbr\u003E The
|
232
|
+
Co-op does not pay tax on the income that we declare as dividends. The Co-op
|
233
|
+
is required to distribute 20% of declared dividends to owners \u2013 roughly
|
234
|
+
the same amount that it would pay in corporate taxes. Therefore, it benefits
|
235
|
+
both the Co-op and owners when owners use their patronage dividend.\u003C/li\u003E\r\n\u003C/ul\u003E\u003Ch3
|
236
|
+
align=\"left\"\u003EDividends are more in keeping with the Co-operative Principles.\u003C/h3\u003E\r\n\u003Cp
|
237
|
+
align=\"left\"\u003EDividends allow for democratic allocation of surpluses
|
238
|
+
each year by the Board of Directors as outlined in Co-op Principle #3.\u003C/p\u003E\r\n\u003Ch3
|
239
|
+
align=\"left\"\u003EDividends reinforce the true relationship between owners
|
240
|
+
and the Co-op.\u003C/h3\u003E\r\n\u003Cp align=\"left\"\u003EDiscounts at
|
241
|
+
the register foster feelings of entitlement (as an owner, I deserve to pay
|
242
|
+
less) and frustration (why isn\u2019t the discount bigger?). When owners receive
|
243
|
+
their dividends, they see that when the Co-op succeeds, they benefit.\u003C/p\u003E\r\n\u003Ch3
|
244
|
+
align=\"left\"\u003EEveryone\u2019s Doing It.\u003C/h3\u003E\r\n\u003Cp align=\"left\"\u003EOver
|
245
|
+
the past 15 years, nearly all of the natural foods co-ops that used to give
|
246
|
+
discounts at the register have switched to a Patronage Dividend system for
|
247
|
+
the reasons outlined above.\u003C/p\u003E"}],"next":"/api/v1/sites/organizeralexandreschmitt/pages/basic_pages?__nonce=gJJGX4WwMASdUP8-Cl1rAQ\u0026__token=AAVop4vso3U6LosmTIOhhyu59LvCQxkkZ6tB3DlsbrZB\u0026limit=11","prev":"/api/v1/sites/organizeralexandreschmitt/pages/basic_pages?__nonce=93rIH1OOQCKtDs41OYt9cQ\u0026__token=AHBoeIoM1VOqbbq7Q6qkVxFTtEFQV1vK51TAVIGEdW8m\u0026limit=11"}'
|
203
248
|
http_version:
|
204
|
-
recorded_at:
|
205
|
-
recorded_with: VCR 2.9.
|
249
|
+
recorded_at: Sat, 15 Aug 2015 05:50:11 GMT
|
250
|
+
recorded_with: VCR 2.9.3
|