noodall-components-general-content 0.0.2 → 0.0.3

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.
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source :rubygems
3
3
  gemspec
4
4
 
5
5
  gem "rails", "3.0.1"
6
- gem 'noodall-ui', :path => "~/Gems/noodall-ui"
6
+ gem 'noodall-ui'
7
7
  gem "capybara", ">= 0.3.9"
8
8
  gem "rspec-rails", ">= 2.0.0.beta"
9
9
  gem 'database_cleaner'
data/Gemfile.lock CHANGED
@@ -1,16 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- noodall-components-general-content (0.0.2)
5
-
6
- PATH
7
- remote: /Users/steve/Gems/noodall-ui
8
- specs:
9
- noodall-ui (0.0.5)
10
- dynamic_form
11
- noodall-core
12
- thoughtbot-sortable_table (= 0.0.6)
13
- will_paginate (~> 3.0.pre2)
4
+ noodall-components-general-content (0.0.3)
14
5
 
15
6
  GEM
16
7
  remote: http://rubygems.org/
@@ -44,7 +35,7 @@ GEM
44
35
  activesupport (3.0.1)
45
36
  arel (1.0.1)
46
37
  activesupport (~> 3.0.0)
47
- bson (1.1.1)
38
+ bson (1.1.4)
48
39
  builder (2.1.2)
49
40
  canable (0.1.1)
50
41
  capybara (0.4.0)
@@ -101,19 +92,24 @@ GEM
101
92
  mime-types (1.16)
102
93
  mm-multi-parameter-attributes (0.1.1)
103
94
  mongo_mapper
104
- mongo (1.1.1)
95
+ mongo (1.1.4)
105
96
  bson (>= 1.1.1)
106
97
  mongo_mapper (0.8.6)
107
98
  activesupport (>= 2.3.4)
108
99
  jnunemaker-validatable (~> 1.8.4)
109
100
  plucky (~> 0.3.6)
110
101
  nokogiri (1.4.3.1)
111
- noodall-core (0.3.2)
102
+ noodall-core (0.3.5)
112
103
  canable (= 0.1.1)
113
104
  mm-multi-parameter-attributes (~> 0.1.1)
114
105
  mongo_mapper (~> 0.8.6)
115
106
  ramdiv-mongo_mapper_acts_as_tree (~> 0.1.1)
116
107
  ruby-stemmer
108
+ noodall-ui (0.0.14)
109
+ dynamic_form
110
+ noodall-core
111
+ thoughtbot-sortable_table (= 0.0.6)
112
+ will_paginate (~> 3.0.pre2)
117
113
  plucky (0.3.6)
118
114
  mongo (~> 1.1)
119
115
  polyglot (0.3.1)
@@ -186,7 +182,7 @@ DEPENDENCIES
186
182
  faker (~> 0.3.1)
187
183
  launchy
188
184
  noodall-components-general-content!
189
- noodall-ui!
185
+ noodall-ui
190
186
  rails (= 3.0.1)
191
187
  rmagick
192
188
  rspec-rails (>= 2.0.0.beta)
@@ -12,8 +12,7 @@
12
12
  <% unless component.asset.nil? %>
13
13
  <span class="file-detail"><%= component.asset.image? ? image_tag( component.asset.url('70x70#', :jpg) ) : asset_icon(component.asset) %></span>
14
14
  <% end -%>
15
- <span class="select-file">Select File</span>
16
- (<span class="types">Images</span>)
15
+ <span class="select-file" data-file-types="images">Select File</span>
17
16
  <%= f.hidden_field :asset_id, :class => "asset_id" %>
18
17
  </p>
19
18
 
@@ -19,7 +19,7 @@ When /^(?:|I )fill in the following within the component:$/ do |fields|
19
19
  end
20
20
  end
21
21
 
22
- When /^(?:|I )press "([^"]*)" within the component$/ do |button|
22
+ When /^(?:|I )press "([^\"]*)" within the component$/ do |button|
23
23
  within "#fancybox-inner" do
24
24
  click_button(button)
25
25
  end
@@ -29,6 +29,8 @@ When /^(?:|I )select an image from the asset library$/ do
29
29
  asset = Factory(:asset, :title => "My Image")
30
30
  within "#fancybox-inner" do
31
31
  page.find(:css, 'span.select-file').click
32
+ # wait until there is an image to click on so that faster machines don't throw errors
33
+ wait_until { page.has_css?("#browser-list li:first", :visible => true) }
32
34
  click_link "Add"
33
35
  end
34
36
  end
@@ -1,7 +1,7 @@
1
1
  module Noodall
2
2
  module Components
3
3
  module GeneralContent
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noodall-components-general-content
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors: []
13
13
 
@@ -15,11 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-04 00:00:00 +00:00
18
+ date: 2010-12-10 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- prerelease: false
23
22
  version_requirements: &id001 !ruby/object:Gem::Requirement
24
23
  none: false
25
24
  requirements:
@@ -34,6 +33,7 @@ dependencies:
34
33
  requirement: *id001
35
34
  type: :development
36
35
  name: bundler
36
+ prerelease: false
37
37
  description: A text and image component for Noodall
38
38
  email: []
39
39
 
@@ -105,9 +105,6 @@ files:
105
105
  - spec/factories/asset.rb
106
106
  - spec/factories/node.rb
107
107
  - spec/files/beef.png
108
- - spec/integration/navigation_spec.rb
109
- - spec/noodall_component_general_content_spec.rb
110
- - spec/spec_helper.rb
111
108
  has_rdoc: true
112
109
  homepage: http://rubygems.org/gems/noodall-components-general-content
113
110
  licenses: []
@@ -1,9 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe "Navigation" do
4
- include Capybara
5
-
6
- it "should be a valid app" do
7
- ::Rails.application.should be_a(Dummy::Application)
8
- end
9
- end
@@ -1,7 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Noodall::Component::Gallery do
4
- it "should be valid" do
5
- Noodall::Component::Gallery.should be_a(Module)
6
- end
7
- end
data/spec/spec_helper.rb DELETED
@@ -1,30 +0,0 @@
1
- # Configure Rails Envinronment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
- require "rspec/rails"
7
-
8
- ActionMailer::Base.delivery_method = :test
9
- ActionMailer::Base.perform_deliveries = true
10
- ActionMailer::Base.default_url_options[:host] = "test.com"
11
-
12
- Rails.backtrace_cleaner.remove_silencers!
13
-
14
- # Configure capybara for integration testing
15
- require "capybara/rails"
16
- Capybara.default_driver = :rack_test
17
- Capybara.default_selector = :css
18
-
19
- # Load support files
20
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
21
-
22
- Rspec.configure do |config|
23
- # Remove this line if you don't want Rspec's should and should_not
24
- # methods or matchers
25
- require 'rspec/expectations'
26
- config.include Rspec::Matchers
27
-
28
- # == Mock Framework
29
- config.mock_with :rspec
30
- end