dev_task 0.0.1 → 0.0.2

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/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --backtrac
@@ -19,4 +19,6 @@ Gem::Specification.new do |gem|
19
19
  gem.add_dependency(%q<rake>, [">= 0"])
20
20
  gem.add_dependency(%q<sass>, ["= 3.1.10"])
21
21
 
22
+ gem.add_development_dependency 'rspec', '~> 2.10.0'
23
+
22
24
  end
@@ -1,3 +1,3 @@
1
1
  module DevTask
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,30 @@
1
+ require 'spec_helper'
2
+
3
+
4
+ describe DevTask::Css2scss, 'Css to scss' do
5
+ let(:css){
6
+ ".header h1 a{
7
+ display: block;
8
+ float: left;
9
+ height: 31px;
10
+ margin-right:20px;
11
+ overflow: hidden;
12
+ width: 178px;
13
+ }"
14
+ }
15
+ let(:scss){
16
+ ".header h1 a {
17
+ display: block;
18
+ float: left;
19
+ height: 31px;
20
+ margin-right: 20px;
21
+ overflow: hidden;
22
+ width: 178px; }
23
+ "
24
+ }
25
+ describe ".convert" do
26
+ it "should valid convert" do
27
+ DevTask::Css2scss.convert(css).should eq(scss)
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,9 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ Bundler.require(:default)
4
+
5
+
6
+ RSpec.configure do |config|
7
+ config.treat_symbols_as_metadata_keys_with_true_values = true
8
+ config.run_all_when_everything_filtered = true
9
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_task
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -59,6 +59,22 @@ dependencies:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
61
  version: 3.1.10
62
+ - !ruby/object:Gem::Dependency
63
+ name: rspec
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 2.10.0
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 2.10.0
62
78
  description: Dev ror task
63
79
  email:
64
80
  - parallel588@gmail.com
@@ -67,6 +83,7 @@ extensions: []
67
83
  extra_rdoc_files: []
68
84
  files:
69
85
  - .gitignore
86
+ - .rspec
70
87
  - Gemfile
71
88
  - LICENSE
72
89
  - README.md
@@ -80,6 +97,8 @@ files:
80
97
  - lib/dev_task/version.rb
81
98
  - lib/tasks/css2sass.rake
82
99
  - lib/tasks/routes.rake
100
+ - spec/dev_task/css2scss_spec.rb
101
+ - spec/spec_helper.rb
83
102
  homepage: ''
84
103
  licenses: []
85
104
  post_install_message:
@@ -104,4 +123,6 @@ rubygems_version: 1.8.24
104
123
  signing_key:
105
124
  specification_version: 3
106
125
  summary: Dev ror task
107
- test_files: []
126
+ test_files:
127
+ - spec/dev_task/css2scss_spec.rb
128
+ - spec/spec_helper.rb