motion-redgreen 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 57a5c9dd608749e56de604a3a7ec23004369750e
4
+ data.tar.gz: eb71c8f2e7c614d78081f117f60577f2d941b38b
5
+ SHA512:
6
+ metadata.gz: 86fddb90d7c5021da60a37e5d3d5e04680ed588249629811cf70154352f1ef8c5d0a48dbf73034e4938fc7e07030e5babb3e5de9f5a89b1e32322b85f3b5731f
7
+ data.tar.gz: 413508bf40617cc31430eed42b675ed8cab14fdc7426c2cb092ad6ad9ef3f71115ab55657ccdf36ca65003aa8f40cddd42c81aef02664bce52905b32d76da4db
data/README.md CHANGED
@@ -4,10 +4,24 @@ Based on the https://github.com/mdks/rm-redgreen.
4
4
 
5
5
  ## Configuration
6
6
 
7
- You can specify the output style as follows:
7
+ Add to your Gemfile and run `bundle install`:
8
8
 
9
9
  ```ruby
10
- app.redgreen_style = :full
10
+ gem 'motion-redgreen'
11
11
  ```
12
12
 
13
- The available styles are *:focused* and *:full*.
13
+ Optionally, specify the output style in your Rakefile:
14
+
15
+ ```ruby
16
+ Motion::Project::App.setup do |app|
17
+ # ...
18
+ app.redgreen_style = :full # default: :focused, also can use :progress
19
+ end
20
+ ```
21
+
22
+ The available styles are `:focused`, `:full`, and `:progress`.
23
+
24
+ Example of the `:progress` output style:
25
+
26
+ ![progress](https://cloud.githubusercontent.com/assets/1479215/5492859/065cab86-869a-11e4-8a75-c0c35ce332e0.png)
27
+
@@ -100,5 +100,47 @@ else
100
100
  end
101
101
  end
102
102
  end
103
+ elsif style == :progress
104
+ module Bacon
105
+ module SpecDoxOutput
106
+ def handle_specification_begin(name)
107
+ end
108
+
109
+ def handle_specification_end
110
+ end
111
+
112
+ def handle_requirement_begin(description)
113
+ @spec_description_cache = description
114
+ end
115
+
116
+ def handle_requirement_end(error)
117
+ @error_summaries ||= []
118
+ if error.empty?
119
+ print ".".green
120
+ else
121
+ color = color_for(error)
122
+ spec_error_message = @spec_description_cache + "\n"
123
+ spec_error_message += "\n#{spaces}[#{error}]".send(color)
124
+ @error_summaries << spec_error_message
125
+
126
+ if error =~ /MISSING/
127
+ print "?".yellow
128
+ else
129
+ print "F".red
130
+ end
131
+ end
132
+ end
133
+
134
+ def handle_summary
135
+ puts ""
136
+ if @error_summaries && @error_summaries.length > 0
137
+ puts @error_summaries.join("\n\n")
138
+ puts "\nBACKTRACE: #{ErrorLog}".red
139
+ end
140
+ puts "%d specifications (%d requirements), %d failures, %d errors" %
141
+ Counter.values_at(:specifications, :requirements, :failed, :errors)
142
+ end
143
+ end
144
+ end
103
145
  end
104
146
  end
@@ -1,5 +1,5 @@
1
1
  module Motion
2
2
  module Redgreen
3
- VERSION = "0.1.0"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-redgreen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Vladimir Pouzanov
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-07-11 00:00:00.000000000 Z
11
+ date: 2014-12-19 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: RedGreen support for RubyMotion
15
14
  email:
@@ -18,7 +17,7 @@ executables: []
18
17
  extensions: []
19
18
  extra_rdoc_files: []
20
19
  files:
21
- - .gitignore
20
+ - ".gitignore"
22
21
  - Gemfile
23
22
  - LICENSE
24
23
  - README.md
@@ -32,27 +31,25 @@ files:
32
31
  - motion-redgreen.gemspec
33
32
  homepage: ''
34
33
  licenses: []
34
+ metadata: {}
35
35
  post_install_message:
36
36
  rdoc_options: []
37
37
  require_paths:
38
38
  - lib
39
39
  required_ruby_version: !ruby/object:Gem::Requirement
40
- none: false
41
40
  requirements:
42
- - - ! '>='
41
+ - - ">="
43
42
  - !ruby/object:Gem::Version
44
43
  version: '0'
45
44
  required_rubygems_version: !ruby/object:Gem::Requirement
46
- none: false
47
45
  requirements:
48
- - - ! '>='
46
+ - - ">="
49
47
  - !ruby/object:Gem::Version
50
48
  version: '0'
51
49
  requirements: []
52
50
  rubyforge_project:
53
- rubygems_version: 1.8.21
51
+ rubygems_version: 2.2.2
54
52
  signing_key:
55
- specification_version: 3
53
+ specification_version: 4
56
54
  summary: RedGreen support for RubyMotion
57
55
  test_files: []
58
- has_rdoc: