noodall-ui 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- noodall-ui (0.0.18)
4
+ noodall-ui (0.0.19)
5
5
  dynamic_form
6
6
  noodall-core
7
7
  thoughtbot-sortable_table (= 0.0.6)
@@ -39,7 +39,7 @@ GEM
39
39
  activesupport (= 3.0.3)
40
40
  activesupport (3.0.3)
41
41
  arel (2.0.6)
42
- bson (1.1.4)
42
+ bson (1.1.5)
43
43
  builder (2.1.2)
44
44
  canable (0.1.1)
45
45
  capybara (0.4.0)
@@ -51,7 +51,7 @@ GEM
51
51
  rack-test (>= 0.5.4)
52
52
  selenium-webdriver (>= 0.0.27)
53
53
  xpath (~> 0.1.2)
54
- celerity (0.8.5)
54
+ celerity (0.8.6)
55
55
  childprocess (0.1.4)
56
56
  ffi (~> 0.6.3)
57
57
  configuration (1.2.0)
@@ -63,7 +63,7 @@ GEM
63
63
  term-ansicolor (~> 1.0.5)
64
64
  cucumber-rails (0.3.2)
65
65
  cucumber (>= 0.8.0)
66
- culerity (0.2.12)
66
+ culerity (0.2.13)
67
67
  database_cleaner (0.6.0)
68
68
  diff-lcs (1.1.2)
69
69
  dragonfly (0.7.7)
@@ -83,7 +83,7 @@ GEM
83
83
  json (~> 1.4.6)
84
84
  term-ansicolor (~> 1.0.5)
85
85
  git (1.2.5)
86
- haml (3.0.24)
86
+ haml (3.0.25)
87
87
  i18n (0.5.0)
88
88
  jeweler (1.4.0)
89
89
  gemcutter (>= 0.1.0)
@@ -102,18 +102,18 @@ GEM
102
102
  mime-types (~> 1.16)
103
103
  treetop (~> 1.4.8)
104
104
  mime-types (1.16)
105
- mm-multi-parameter-attributes (0.1.1)
105
+ mm-multi-parameter-attributes (0.1.0)
106
106
  mongo_mapper
107
- mongo (1.1.4)
108
- bson (>= 1.1.1)
107
+ mongo (1.1.5)
108
+ bson (>= 1.1.5)
109
109
  mongo_mapper (0.8.6)
110
110
  activesupport (>= 2.3.4)
111
111
  jnunemaker-validatable (~> 1.8.4)
112
112
  plucky (~> 0.3.6)
113
113
  nokogiri (1.4.4)
114
- noodall-core (0.3.6)
114
+ noodall-core (0.3.10)
115
115
  canable (= 0.1.1)
116
- mm-multi-parameter-attributes (~> 0.1.1)
116
+ mm-multi-parameter-attributes (= 0.1.0)
117
117
  mongo_mapper (~> 0.8.6)
118
118
  ramdiv-mongo_mapper_acts_as_tree (~> 0.1.1)
119
119
  ruby-stemmer
@@ -58,7 +58,7 @@ module Noodall
58
58
  def related_content(ref_node, types =[], options = {})
59
59
  options[:_type] = {'$in' => types} unless types.empty?
60
60
 
61
- nodes = ref_node.related(publish_options(options.merge(:order => 'published_at DESC')))
61
+ nodes = ref_node.related(options.merge(:order => 'published_at DESC', :published_at => { :$lte => Time.zone.now }, :published_to => { :$gte => Time.zone.now }))
62
62
  return if nodes.empty?
63
63
 
64
64
  content_tag('h2', 'Related Content') +
@@ -1,4 +1,4 @@
1
- <div id="<%%= slot_code %>" class="component promo <%%= 'double' if expand %> <%%= additional_classes %>">
1
+ <div id="<%%= slot_code %>" class="component <%= file_name.gsub(/_/ig, '-') %> <%%= 'double' if expand %> <%%= additional_classes %>">
2
2
  <% unless attributes.empty? %>
3
3
  <dl>
4
4
  <% for attribute in attributes -%>
@@ -1,5 +1,5 @@
1
1
  module Noodall
2
2
  module UI
3
- VERSION = "0.0.18"
3
+ VERSION = "0.0.19"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noodall-ui
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 18
10
- version: 0.0.18
9
+ - 19
10
+ version: 0.0.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steve England
@@ -19,7 +19,7 @@ date: 2010-12-21 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
23
  none: false
24
24
  requirements:
25
25
  - - ">="
@@ -28,12 +28,12 @@ dependencies:
28
28
  segments:
29
29
  - 0
30
30
  version: "0"
31
- requirement: *id001
32
31
  type: :runtime
33
32
  name: noodall-core
34
33
  prerelease: false
34
+ version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
36
- version_requirements: &id002 !ruby/object:Gem::Requirement
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
37
  none: false
38
38
  requirements:
39
39
  - - "="
@@ -44,12 +44,12 @@ dependencies:
44
44
  - 0
45
45
  - 6
46
46
  version: 0.0.6
47
- requirement: *id002
48
47
  type: :runtime
49
48
  name: thoughtbot-sortable_table
50
49
  prerelease: false
50
+ version_requirements: *id002
51
51
  - !ruby/object:Gem::Dependency
52
- version_requirements: &id003 !ruby/object:Gem::Requirement
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ~>
@@ -60,12 +60,12 @@ dependencies:
60
60
  - 0
61
61
  - pre2
62
62
  version: 3.0.pre2
63
- requirement: *id003
64
63
  type: :runtime
65
64
  name: will_paginate
66
65
  prerelease: false
66
+ version_requirements: *id003
67
67
  - !ruby/object:Gem::Dependency
68
- version_requirements: &id004 !ruby/object:Gem::Requirement
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
69
  none: false
70
70
  requirements:
71
71
  - - ">="
@@ -74,12 +74,12 @@ dependencies:
74
74
  segments:
75
75
  - 0
76
76
  version: "0"
77
- requirement: *id004
78
77
  type: :runtime
79
78
  name: dynamic_form
80
79
  prerelease: false
80
+ version_requirements: *id004
81
81
  - !ruby/object:Gem::Dependency
82
- version_requirements: &id005 !ruby/object:Gem::Requirement
82
+ requirement: &id005 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ">="
@@ -90,10 +90,10 @@ dependencies:
90
90
  - 0
91
91
  - 0
92
92
  version: 1.0.0
93
- requirement: *id005
94
93
  type: :development
95
94
  name: bundler
96
95
  prerelease: false
96
+ version_requirements: *id005
97
97
  description: Noodall Rails User Interface Engine. Requires Noodall Core
98
98
  email:
99
99
  - steve@wearebeef.co.uk