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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/news_post.rb +6 -1
  3. data/lib/enju_news/engine.rb +1 -1
  4. data/lib/enju_news/version.rb +1 -1
  5. data/spec/cassette_library/NewsFeed/should_fetch_feeds.yml +496 -872
  6. data/spec/cassette_library/NewsFeed/should_get_content.yml +463 -806
  7. data/spec/cassette_library/NewsFeed/should_not_get_content_if_the_feed_is_invalid.yml +35 -68
  8. data/spec/cassette_library/NewsFeed/should_reload_content.yml +463 -806
  9. data/spec/dummy/app/controllers/application_controller.rb +2 -48
  10. data/spec/dummy/app/models/user.rb +5 -91
  11. data/spec/dummy/config/application.rb +1 -2
  12. data/spec/dummy/config/application.yml +42 -0
  13. data/spec/dummy/config/initializers/devise.rb +2 -0
  14. data/spec/dummy/db/migrate/059_create_libraries.rb +28 -0
  15. data/spec/dummy/db/migrate/069_create_shelves.rb +15 -0
  16. data/spec/dummy/db/migrate/080_create_library_groups.rb +1 -3
  17. data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
  18. data/spec/dummy/db/migrate/124_create_bookstores.rb +17 -0
  19. data/spec/dummy/db/migrate/130_create_request_status_types.rb +12 -0
  20. data/spec/dummy/db/migrate/131_create_request_types.rb +12 -0
  21. data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +17 -0
  22. data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +14 -0
  23. data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +17 -0
  24. data/spec/dummy/db/migrate/20091202124834_create_versions.rb +18 -0
  25. data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +9 -0
  26. data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
  27. data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -8
  28. data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +5 -0
  29. data/spec/dummy/db/migrate/20120129014038_create_budget_types.rb +12 -0
  30. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
  31. data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +5 -0
  32. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +26 -0
  33. data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +6 -0
  34. data/spec/dummy/db/schema.rb +185 -15
  35. data/spec/dummy/db/test.sqlite3 +0 -0
  36. data/spec/factories/library.rb +13 -0
  37. data/spec/factories/user.rb +33 -11
  38. data/spec/fixtures/libraries.yml +102 -0
  39. data/spec/fixtures/user_groups.yml +45 -0
  40. data/spec/spec_helper.rb +16 -17
  41. metadata +96 -53
  42. data/lib/generators/enju_news/views_generator.rb +0 -18
  43. data/spec/dummy/app/models/library_group.rb +0 -86
  44. data/spec/dummy/app/models/role.rb +0 -46
  45. data/spec/dummy/app/models/user_group.rb +0 -40
  46. data/spec/dummy/app/models/user_has_role.rb +0 -5
  47. data/spec/dummy/db/development.sqlite3 +0 -0
  48. data/spec/dummy/lib/master_model.rb +0 -19
  49. 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://www.iana.org/domains/example/
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: Mon, 25 Feb 2013 06:51:52 GMT
33
+ recorded_at: Sat, 01 Jun 2013 10:19:37 GMT
34
34
  - request:
35
35
  method: get
36
- uri: http://www.iana.org/domains/example/
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
- - Mon, 25 Feb 2013 06:51:55 GMT
89
- server:
90
- - Apache/2.2.3 (CentOS)
57
+ - Sat, 01 Jun 2013 10:19:36 GMT
58
+ etag:
59
+ - '"780602-4f6-4db31b2978ec0"'
91
60
  last-modified:
92
- - Fri, 04 Jan 2013 01:17:22 GMT
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
- - '606'
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\t<title>Example Domain</title>\n\n\t<meta
106
- charset=\"utf-8\" />\n\t<meta http-equiv=\"Content-type\" content=\"text/html;
107
- charset=utf-8\" />\n\t<meta name=\"viewport\" content=\"width=device-width,
108
- initial-scale=1\" />\n\t<style type=\"text/css\">\n\tbody {\n\t\tbackground-color:
109
- #f0f0f2;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tfont-family: \"Open Sans\",
110
- \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n\t\t\n\t}\n\tdiv {\n\t\twidth:
111
- 600px;\n\t\tmargin: 5em auto;\n\t\tpadding: 3em;\n\t\tbackground-color: #fff;\n\t\tborder-radius:
112
- 1em;\n\t}\n\ta:link, a:visited {\n\t\tcolor: #38488f;\n\t\ttext-decoration:
113
- none;\n\t}\n\t@media (max-width: 600px) {\n\t\tbody {\n\t\t\tbackground-color:
114
- #fff;\n\t\t}\n\t\tdiv {\n\t\t\twidth: auto;\n\t\t\tmargin: 0 auto;\n\t\t\tborder-radius:
115
- 0;\n\t\t\tpadding: 1em;\n\t\t}\n\t}\n\t</style>\t\n</head>\n\n<body>\n<div>\n\t<h1>Example
116
- Domain</h1>\n\t<p>This domain is established to be used for illustrative examples
117
- in documents. You do not need to\n\t\tcoordinate or ask for permission to
118
- use this domain in examples, and it is not available for\n\t\tregistration.</p>\n\t<p><a
119
- href=\"http://www.iana.org/domains/special\">More information...</a></p>\n</div>\n</body>\n</html>\n"
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: Mon, 25 Feb 2013 06:51:53 GMT
122
- recorded_with: VCR 2.4.0
88
+ recorded_at: Sat, 01 Jun 2013 10:19:38 GMT
89
+ recorded_with: VCR 2.5.0