maker_website 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e1267b826fc47505009dff801cacb8c7ac17eae
4
- data.tar.gz: a571d697ca56060f68907709b3f79f0d6989936a
3
+ metadata.gz: 5a19be453dbb40b2c666d479e5b050e0324d627c
4
+ data.tar.gz: e6a327784779cd7378c61627a6902a4ee355acb0
5
5
  SHA512:
6
- metadata.gz: e62a817f6f00e16e4cdfd04eb5d6f883848bd18e0ee7232966b5975bb5a7a7c8ed281bf1383f57ecc948fd2a72202045b1c2085709ff2fcfc026d628ffa2c996
7
- data.tar.gz: 7c0f114e5fa43c430d7c375722b0002e01d44dec0d5bd69d6fc27e02867718f20a19163eb33f49c594c308e88713229a3c0bbbd5ca4948decfd9a3a094d0ea7a
6
+ metadata.gz: f756f40265dfe9c4a42a332c4543d6fac13882ff3c0a94a1e761e5842381529194ad62d0da933a8cce7e3123b02105c0cb21cb9a4bd0ea0fc1a0ea5f9c8c2023
7
+ data.tar.gz: 4ba159db4625f904c89a7621cbba29441474f4c44a5bad883642ed34b13643d3485e805ea4dbec83258248c1266b17311e0687301e6664c373c30db48086f203
data/exe/maker ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rspec'
4
+ require 'rspec/core/formatters/json_formatter'
5
+
6
+ config = RSpec.configuration
7
+
8
+ formatter = RSpec::Core::Formatters::JsonFormatter.new(config.output_stream)
9
+
10
+ # create reporter with json formatter
11
+ reporter = RSpec::Core::Reporter.new(config)
12
+ config.instance_variable_set(:@reporter, reporter)
13
+
14
+ # internal hack
15
+ # api may not be stable, make sure lock down Rspec version
16
+ loader = config.send(:formatter_loader)
17
+ notifications = loader.send(:notifications_for,
18
+ RSpec::Core::Formatters::JsonFormatter)
19
+
20
+ reporter.register_listener(formatter, *notifications)
21
+
22
+
23
+ spec_file = File.expand_path( "../lib/maker_website/website_spec.rb", File.dirname(__FILE__))
24
+ RSpec::Core::Runner.run([spec_file])
25
+
26
+ # here's your json hash
27
+ p formatter.output_hash
@@ -1,3 +1,3 @@
1
1
  module MakerWebsite
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -0,0 +1,17 @@
1
+ # Capybara stuff
2
+ require 'capybara'
3
+ require 'capybara/rspec'
4
+ require './server'
5
+
6
+ Capybara.app = Sinatra::Application.new
7
+
8
+ def app
9
+ Sinatra::Application
10
+ end
11
+
12
+ feature "Hello world" do
13
+ scenario "it works" do
14
+ visit "/"
15
+ expect(page).to have_content("Yellow World")
16
+ end
17
+ end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maker_website
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Forrest
@@ -69,7 +69,8 @@ dependencies:
69
69
  description:
70
70
  email:
71
71
  - ben@silvabox.com
72
- executables: []
72
+ executables:
73
+ - maker
73
74
  extensions: []
74
75
  extra_rdoc_files: []
75
76
  files:
@@ -79,8 +80,11 @@ files:
79
80
  - Rakefile
80
81
  - bin/console
81
82
  - bin/setup
83
+ - exe/maker
82
84
  - lib/maker_website.rb
83
85
  - lib/maker_website/version.rb
86
+ - lib/maker_website/website_spec.rb
87
+ - maker_website-0.1.1.gem
84
88
  - maker_website.gemspec
85
89
  homepage: http://www.makersacademy.com
86
90
  licenses: []