enju_news 0.1.0.pre3 → 0.1.0.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/news_post.rb +6 -1
- data/lib/enju_news/engine.rb +1 -1
- data/lib/enju_news/version.rb +1 -1
- data/spec/cassette_library/NewsFeed/should_fetch_feeds.yml +496 -872
- data/spec/cassette_library/NewsFeed/should_get_content.yml +463 -806
- data/spec/cassette_library/NewsFeed/should_not_get_content_if_the_feed_is_invalid.yml +35 -68
- data/spec/cassette_library/NewsFeed/should_reload_content.yml +463 -806
- data/spec/dummy/app/controllers/application_controller.rb +2 -48
- data/spec/dummy/app/models/user.rb +5 -91
- data/spec/dummy/config/application.rb +1 -2
- data/spec/dummy/config/application.yml +42 -0
- data/spec/dummy/config/initializers/devise.rb +2 -0
- data/spec/dummy/db/migrate/059_create_libraries.rb +28 -0
- data/spec/dummy/db/migrate/069_create_shelves.rb +15 -0
- data/spec/dummy/db/migrate/080_create_library_groups.rb +1 -3
- data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
- data/spec/dummy/db/migrate/124_create_bookstores.rb +17 -0
- data/spec/dummy/db/migrate/130_create_request_status_types.rb +12 -0
- data/spec/dummy/db/migrate/131_create_request_types.rb +12 -0
- data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +17 -0
- data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +14 -0
- data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +17 -0
- data/spec/dummy/db/migrate/20091202124834_create_versions.rb +18 -0
- data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
- data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -8
- data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +5 -0
- data/spec/dummy/db/migrate/20120129014038_create_budget_types.rb +12 -0
- data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
- data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +5 -0
- data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +26 -0
- data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +6 -0
- data/spec/dummy/db/schema.rb +185 -15
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/factories/library.rb +13 -0
- data/spec/factories/user.rb +33 -11
- data/spec/fixtures/libraries.yml +102 -0
- data/spec/fixtures/user_groups.yml +45 -0
- data/spec/spec_helper.rb +16 -17
- metadata +96 -53
- data/lib/generators/enju_news/views_generator.rb +0 -18
- data/spec/dummy/app/models/library_group.rb +0 -86
- data/spec/dummy/app/models/role.rb +0 -46
- data/spec/dummy/app/models/user_group.rb +0 -40
- data/spec/dummy/app/models/user_has_role.rb +0 -5
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/lib/master_model.rb +0 -19
- data/spec/dummy/lib/url_validator.rb +0 -10
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
message: Found
|
20
20
|
headers:
|
21
21
|
location:
|
22
|
-
- http://
|
22
|
+
- http://example.iana.org
|
23
23
|
server:
|
24
24
|
- BigIP
|
25
25
|
connection:
|
@@ -30,45 +30,10 @@ http_interactions:
|
|
30
30
|
encoding: UTF-8
|
31
31
|
string: ''
|
32
32
|
http_version: '1.0'
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Sat, 01 Jun 2013 10:19:37 GMT
|
34
34
|
- request:
|
35
35
|
method: get
|
36
|
-
uri: http://
|
37
|
-
body:
|
38
|
-
encoding: US-ASCII
|
39
|
-
string: ''
|
40
|
-
headers:
|
41
|
-
accept-encoding:
|
42
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
43
|
-
accept:
|
44
|
-
- '*/*'
|
45
|
-
user-agent:
|
46
|
-
- Ruby
|
47
|
-
response:
|
48
|
-
status:
|
49
|
-
code: 302
|
50
|
-
message: FOUND
|
51
|
-
headers:
|
52
|
-
date:
|
53
|
-
- Mon, 25 Feb 2013 06:51:55 GMT
|
54
|
-
server:
|
55
|
-
- Apache/2.2.3 (CentOS)
|
56
|
-
location:
|
57
|
-
- http://www.iana.org/domains/example
|
58
|
-
content-length:
|
59
|
-
- '0'
|
60
|
-
connection:
|
61
|
-
- close
|
62
|
-
content-type:
|
63
|
-
- text/html; charset=utf-8
|
64
|
-
body:
|
65
|
-
encoding: UTF-8
|
66
|
-
string: ''
|
67
|
-
http_version: '1.1'
|
68
|
-
recorded_at: Mon, 25 Feb 2013 06:51:53 GMT
|
69
|
-
- request:
|
70
|
-
method: get
|
71
|
-
uri: http://www.iana.org/domains/example
|
36
|
+
uri: http://example.iana.org/
|
72
37
|
body:
|
73
38
|
encoding: US-ASCII
|
74
39
|
string: ''
|
@@ -84,39 +49,41 @@ http_interactions:
|
|
84
49
|
code: 200
|
85
50
|
message: OK
|
86
51
|
headers:
|
52
|
+
accept-ranges:
|
53
|
+
- bytes
|
54
|
+
content-type:
|
55
|
+
- text/html; charset=UTF-8
|
87
56
|
date:
|
88
|
-
-
|
89
|
-
|
90
|
-
-
|
57
|
+
- Sat, 01 Jun 2013 10:19:36 GMT
|
58
|
+
etag:
|
59
|
+
- '"780602-4f6-4db31b2978ec0"'
|
91
60
|
last-modified:
|
92
|
-
-
|
61
|
+
- Thu, 25 Apr 2013 16:13:23 GMT
|
62
|
+
server:
|
63
|
+
- ECS (cpm/F858)
|
64
|
+
x-cache:
|
65
|
+
- HIT
|
93
66
|
content-length:
|
94
|
-
- '
|
95
|
-
vary:
|
96
|
-
- Accept-Encoding
|
97
|
-
content-encoding:
|
98
|
-
- gzip
|
99
|
-
connection:
|
100
|
-
- close
|
101
|
-
content-type:
|
102
|
-
- text/html; charset=UTF-8
|
67
|
+
- '1270'
|
103
68
|
body:
|
104
69
|
encoding: UTF-8
|
105
|
-
string: "<!doctype html>\n<html>\n<head>\n
|
106
|
-
charset=\"utf-8\" />\n
|
107
|
-
charset=utf-8\" />\n
|
108
|
-
initial-scale=1\" />\n
|
109
|
-
#f0f0f2;\n
|
110
|
-
\"Helvetica Neue\", Helvetica, Arial, sans-serif;\n\
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
70
|
+
string: "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title>\n\n
|
71
|
+
\ <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"text/html;
|
72
|
+
charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width,
|
73
|
+
initial-scale=1\" />\n <style type=\"text/css\">\n body {\n background-color:
|
74
|
+
#f0f0f2;\n margin: 0;\n padding: 0;\n font-family: \"Open
|
75
|
+
Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n \n }\n
|
76
|
+
\ div {\n width: 600px;\n margin: 5em auto;\n padding:
|
77
|
+
50px;\n background-color: #fff;\n border-radius: 1em;\n }\n
|
78
|
+
\ a:link, a:visited {\n color: #38488f;\n text-decoration:
|
79
|
+
none;\n }\n @media (max-width: 700px) {\n body {\n background-color:
|
80
|
+
#fff;\n }\n div {\n width: auto;\n margin:
|
81
|
+
0 auto;\n border-radius: 0;\n padding: 1em;\n }\n
|
82
|
+
\ }\n </style> \n</head>\n\n<body>\n<div>\n <h1>Example Domain</h1>\n
|
83
|
+
\ <p>This domain is established to be used for illustrative examples in
|
84
|
+
documents. You may use this\n domain in examples without prior coordination
|
85
|
+
or asking for permission.</p>\n <p><a href=\"http://www.iana.org/domains/example\">More
|
86
|
+
information...</a></p>\n</div>\n</body>\n</html>\n"
|
120
87
|
http_version: '1.1'
|
121
|
-
recorded_at:
|
122
|
-
recorded_with: VCR 2.
|
88
|
+
recorded_at: Sat, 01 Jun 2013 10:19:38 GMT
|
89
|
+
recorded_with: VCR 2.5.0
|