tablestyle 0.0.5 → 0.0.8

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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZGM0OTE0ZjJlYjhlYTA4MjNmZGFmZDViMTA1OTIzMWEzMmJkMGU1Mw==
5
+ data.tar.gz: !binary |-
6
+ YTI0NjJiOGZiM2Y4OGQ1ZmRjNTEwMmE4Mzc3Y2YwMTRjMGMzMTZlZA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YjBjMmRkOWQ1YTFhNGVmMjQ3M2Y3ZmVmMTRjOTU1MDY2ZTI3ZjRmODk5MmQ3
10
+ YjVjOTU1YmRkN2Q1MDMyMjY5NGFiYmViYTYzODBmNjYzNmNiNTkxMjVlNzll
11
+ NzQ3ODMxZmRkYjRhOTNlNDI4ZWFmNGRkNTlmZDAwNWIyMTJlZmU=
12
+ data.tar.gz: !binary |-
13
+ OGI3OTM0NTQ5N2NiOTZlZTQwZDU2NjI4NWI0YWExOWY1YzNmODU4ZDc1NjBi
14
+ MGJlMzE1MDM4YTEwMGIwNTliZDY3MzJlYTY4NjU2NWI0NWEwNDg1ZWRjYjY5
15
+ ODEzZTcxMTc5YzIxMDU2NWJhZWFkYmNhYWFjMWZjZjg0M2JmYjU=
data/.gitignore CHANGED
@@ -15,6 +15,7 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+
18
19
  .tmp
19
20
  components
20
21
 
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
1
+ source 'http://ruby.taobao.org'
2
2
 
3
3
  # Specify your gem's dependencies in tablestyle.gemspec
4
4
  gemspec
@@ -1,30 +1,10 @@
1
1
  require "tablestyle/version"
2
+ require 'compass'
3
+ Compass::Frameworks.register("tablestyle", :path => "#{File.dirname(__FILE__)}/..")
2
4
 
3
5
  module Tablestyle
4
6
  # Your code goes here...
5
- def Tablestyle.hi
6
- puts "HELLO module!"
7
- end
8
- end
7
+ STYLESHEETS = File.expand_path("../stylesheets", __FILE__)
9
8
 
10
- class Nvshen
11
- def self.hi(language = "english")
12
- translator = Translator.new(language)
13
- puts translator.hi
14
- end
15
9
  end
16
10
 
17
- class Nvshen::Translator
18
- def initialize(language)
19
- @language = language
20
- end
21
-
22
- def hi
23
- case @language
24
- when "chinese"
25
- "你好 女神"
26
- else
27
- "hello nvshen"
28
- end
29
- end
30
- end
@@ -1,3 +1,3 @@
1
- module Tablestyle
2
- VERSION = "0.0.5"
3
- end
1
+ module Tablestyle
2
+ VERSION = "0.0.8"
3
+ end
@@ -0,0 +1 @@
1
+ // This is your framework's main stylesheet. Use it to import all default modules.
@@ -0,0 +1 @@
1
+ @import "tablestyle/_table.sass"
@@ -0,0 +1,36 @@
1
+ ////////////////////////////
2
+ // NOTE: Color Blue Theme //
3
+ ////////////////////////////
4
+ table.overview
5
+ width: 90%
6
+ margin: 1em auto
7
+
8
+ $cell-width: 1em
9
+ $row-color: #F7FBFF
10
+ table.bule-theme
11
+ font-size: 12px
12
+ font-family: "Trebuchet MS",​Verdana,​Arial,​Helvetica,​sans-serif
13
+ line-height: 1.6em
14
+ color: #6680A0
15
+ caption
16
+ text-align: center
17
+ line-height: 3em
18
+ tr.even
19
+ background-color: #FFF
20
+ tr.odd
21
+ background-color: $row-color
22
+ tr
23
+ background-color: $row-color
24
+ th, td
25
+ text-align: center
26
+ border: 1px solid #E5EFF8
27
+ padding: 0.3em $cell-width
28
+ thead th, tfoot th
29
+ font-weight: bold
30
+ font-size: 14px
31
+ line-height: 2em
32
+ color: #65A3D2
33
+ padding: 10px $cell-width
34
+ tbody th
35
+ text-align: left
36
+
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'tablestyle/version'
@@ -11,11 +11,15 @@ Gem::Specification.new do |gem|
11
11
  gem.description = %q{"just test description"}
12
12
  gem.summary = %q{"just test summary"}
13
13
  gem.homepage = "http://www.google.com"
14
+ gem.license = "MIT"
14
15
 
15
16
  gem.files = `git ls-files`.split($/)
16
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
19
  gem.require_paths = ["lib"]
19
-
20
+
21
+ gem.add_development_dependency "bundler", "~> 1.3"
22
+ gem.add_development_dependency "rake"
20
23
  gem.add_dependency(%q<compass>, [">= 0.12.0"])
24
+ gem.add_dependency(%q<haml>, [">= 4.0.0"])
21
25
  end
@@ -0,0 +1,69 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>table example</title>
6
+ <link rel="stylesheet" href="screen.css">
7
+ </head>
8
+ <body>
9
+ <table class="overview scheme-2">
10
+ <caption>Company X webhosting products overview</caption>
11
+ <thead>
12
+ <tr>
13
+ <td></td>
14
+ <th>table head</th>
15
+ <th>table head</th>
16
+ <th>table head</th>
17
+ <th>table head</th>
18
+ <th>table head</th>
19
+ <th>table head</th>
20
+ <th>table head</th>
21
+ </tr>
22
+ </thead>
23
+ <tfoot>
24
+ <tr>
25
+ <td></td>
26
+ <th>table foot</th>
27
+ <th>table foot</th>
28
+ <th>table foot</th>
29
+ <th>table foot</th>
30
+ <th>table foot</th>
31
+ <th>table foot</th>
32
+ <th>table foot</th>
33
+ </tr>
34
+ </tfoot>
35
+ <tbody>
36
+ <tr>
37
+ <th>table body</th>
38
+ <td>1234</td>
39
+ <td>1234</td>
40
+ <td>1234</td>
41
+ <td>1234</td>
42
+ <td>1234</td>
43
+ <td>1234</td>
44
+ <td>1234</td>
45
+ </tr>
46
+ <tr>
47
+ <th>table body</th>
48
+ <td>1234</td>
49
+ <td>1234</td>
50
+ <td>1234</td>
51
+ <td>1234</td>
52
+ <td>1234</td>
53
+ <td>1234</td>
54
+ <td>1234</td>
55
+ </tr>
56
+ <tr>
57
+ <th>table body</th>
58
+ <td>1234</td>
59
+ <td>1234</td>
60
+ <td>1234</td>
61
+ <td>1234</td>
62
+ <td>1234</td>
63
+ <td>1234</td>
64
+ <td>1234</td>
65
+ </tr>
66
+ </tbody>
67
+ </table>
68
+ </body>
69
+ </html>
@@ -0,0 +1,3 @@
1
+ # Make sure you list all the project template files here in the manifest.
2
+ html 'example.html'
3
+ stylesheet 'screen.sass'
@@ -0,0 +1,3 @@
1
+ // This is where you put the contents of the main stylesheet for the user's project.
2
+ // It should import your sass stylesheets and demonstrate how to use them.
3
+ @import tablestyle
@@ -0,0 +1,2 @@
1
+ # Make sure you list all the project template files here in the manifest.
2
+ stylesheet 'screen.sass', :media => 'screen, projection'
@@ -0,0 +1,2 @@
1
+ // This is where you put the contents of the main stylesheet for the user's project.
2
+ // It should import your sass stylesheets and demonstrate how to use them.
metadata CHANGED
@@ -1,20 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tablestyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
5
- prerelease:
4
+ version: 0.0.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - taballa.hp-PD
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-08 00:00:00.000000000 Z
11
+ date: 2013-08-26 00:00:00.000000000 Z
13
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
14
41
  - !ruby/object:Gem::Dependency
15
42
  name: compass
16
43
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
44
  requirements:
19
45
  - - ! '>='
20
46
  - !ruby/object:Gem::Version
@@ -22,11 +48,24 @@ dependencies:
22
48
  type: :runtime
23
49
  prerelease: false
24
50
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
51
  requirements:
27
52
  - - ! '>='
28
53
  - !ruby/object:Gem::Version
29
54
  version: 0.12.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: haml
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 4.0.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: 4.0.0
30
69
  description: ! '"just test description"'
31
70
  email:
32
71
  - taballa@gmail.com
@@ -40,33 +79,39 @@ files:
40
79
  - README.md
41
80
  - Rakefile
42
81
  - lib/tablestyle.rb
43
- - lib/tablestyle/translate.rb
44
82
  - lib/tablestyle/version.rb
45
- - stylesheet/tablestyle/_table.sass
83
+ - stylesheets/_main.sass
84
+ - stylesheets/_tablestyle.sass
85
+ - stylesheets/tablestyle/_table.sass
46
86
  - tablestyle.gemspec
87
+ - templates/example/example.html
88
+ - templates/example/manifest.rb
89
+ - templates/example/screen.sass
90
+ - templates/project/manifest.rb
91
+ - templates/project/screen.sass
47
92
  homepage: http://www.google.com
48
- licenses: []
93
+ licenses:
94
+ - MIT
95
+ metadata: {}
49
96
  post_install_message:
50
97
  rdoc_options: []
51
98
  require_paths:
52
99
  - lib
53
100
  required_ruby_version: !ruby/object:Gem::Requirement
54
- none: false
55
101
  requirements:
56
102
  - - ! '>='
57
103
  - !ruby/object:Gem::Version
58
104
  version: '0'
59
105
  required_rubygems_version: !ruby/object:Gem::Requirement
60
- none: false
61
106
  requirements:
62
107
  - - ! '>='
63
108
  - !ruby/object:Gem::Version
64
109
  version: '0'
65
110
  requirements: []
66
111
  rubyforge_project:
67
- rubygems_version: 1.8.24
112
+ rubygems_version: 2.0.7
68
113
  signing_key:
69
- specification_version: 3
114
+ specification_version: 4
70
115
  summary: ! '"just test summary"'
71
116
  test_files: []
72
117
  has_rdoc:
@@ -1,14 +0,0 @@
1
- class Nvshen::Translator
2
- def initialize(language)
3
- @language = language
4
- end
5
-
6
- def hi
7
- case @language
8
- when :chinese
9
- "你好 女神"
10
- else
11
- "hello nvshen"
12
- end
13
- end
14
- end
File without changes