haravan_theme 0.0.25 → 0.0.26

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: 958bc1d2190cb079a934924bf3a28df2b88a8dd0
4
- data.tar.gz: e6c7f14ca99cc56521c65f485b66cb277f456c28
3
+ metadata.gz: 2a9d4acb2631e3647e8716916fad09208a3886c4
4
+ data.tar.gz: 837ddd02355536acaf327c669dccae4a2f876e4f
5
5
  SHA512:
6
- metadata.gz: 2f047b5aafdf57fc35c877541ee68de77e8cf4d072644c464509ea865e3ba56d23e7dafca101fe5614bb50765ada2f47dfc2a7dc12c1aed998171d8a2605ae08
7
- data.tar.gz: 35e6176b440366968a70eb6338ba67d0703bc065fefdda17546d603a1545c3783a9597424d400267fc0f595c20ade30858b60cf53f7da86ca83c43d9de6ec5f7
6
+ metadata.gz: d5c481a10a55e6810504506ce84ade952ead76255408aebc82c53f171de572796fb1d943d1b131afddef6e26f72950712ef2fdde8e0fe719f1005437bc6a4e6c
7
+ data.tar.gz: 3b85f4698218ee3c903fea83d709b7376ae01e1ce5aff095194a7fcb6154c8bb4c9dde7295e76ff4e4b9055db3292a5f2c3c6f392f27a515345e748bf2f37f66
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ![Haravan theme gem](https://dl.dropboxusercontent.com/u/669627/terminalreadme.png)
6
6
 
7
- The Haravan theme gem is a command line tool that allows you to manage and edit theme files directly on your computer. This allows you to use your preferred code editing software opposed to the built in code editor available in the “Edit HTML/CSS” page of your store. Files can be manually or automatically uploaded, downloaded, and synced. Depending on how you develop themes and your personal preference, this can allow for a more enjoyable and streamlined workflow. If the command line is scary for you, check out the [Desktop Theme Editor app](http://apps.haravan.com/desktop-theme-editor).
7
+ The Haravan theme gem is a command line tool that allows you to manage and edit theme files directly on your computer. This allows you to use your preferred code editing software opposed to the built in code editor available in the “Edit HTML/CSS” page of your store. Files can be manually or automatically uploaded, downloaded, and synced. Depending on how you develop themes and your personal preference, this can allow for a more enjoyable and streamlined workflow.
8
8
 
9
9
 
10
10
  ## Requirements
@@ -24,7 +24,7 @@ Click on “Create a Private App” to generate the credentials for a new app. Y
24
24
 
25
25
  Navigate to the directory where you theme files live, or where you'd like them to be, and execute the following command:
26
26
 
27
- `theme configure api_key password store_domain`
27
+ `theme configure api_key password store_domain theme_id`
28
28
 
29
29
  **Important:** enter the `store_domain` with no `http://`.
30
30
 
@@ -38,8 +38,8 @@ The config.yml file contains the information needed for Haravan to authenticate
38
38
  ---
39
39
  :api_key: 7a8da86d3dd730b67a357dedabaac5d6
40
40
  :password: 552338ce0d3aba7fc501dcf99bc57a81
41
- :store: little-plastics.myharavan.com
42
- :theme_id:
41
+ :store: lublue.myharavan.com
42
+ :theme_id: 1000026676
43
43
  :whitelist_files:
44
44
  - directoryToUpload/
45
45
  - importantFile.txt
@@ -74,17 +74,6 @@ Specifies which files and directories should be responding to changes. If nothin
74
74
 
75
75
  Specifies which files should be explicitly ignored and not affected by any commands entered.
76
76
 
77
- ### Alternative OAuth configuration (for advanced users)
78
- As of v0.0.23, you can use a Haravan application's OAuth access token to authenticate with a store and manipulate theme files.
79
-
80
- Once your application has obtained an access token through Haravan's regular OAuth authentication flow, run the following command to configure the gem:
81
-
82
- `theme configure_oauth access_token store_domain`
83
-
84
- The gem can then be used in exactly the same way as if you were authenticating via a Private App.
85
-
86
- Note that the access token your Application has obtained ***must*** be valid for the `write_themes` scope in order to use the theme gem in this way.
87
-
88
77
 
89
78
  ## Commands
90
79
 
@@ -108,40 +97,6 @@ This command replaces all store files with local files; it ensures the store the
108
97
  `theme watch`
109
98
 
110
99
  Once this command is entered, it continuously monitors files for changes. If a change is detected, it automatically uploads that file to your store. This is similar to [grunt watch](https://github.com/gruntjs/grunt-contrib-watch). To stop theme watch press CRTL + C.
111
- `theme open`
112
-
113
- This command opens your store in the default browser specified on your computer.
114
-
115
- `theme bootstrap api_key password store theme_name --version=[version]`
116
-
117
- This command is useful if you are starting a brand new theme. It automatically populates your store with a fresh copy of the [Haravan Timber framework](http://haravan.github.io/Timber/). If you haven’t heard of Timber, it is a theme framework designed for specifically for Haravan themes, made by Haravan. If you enjoy using frameworks like [Bootstrap](http://getbootstrap.com/) or [Foundation](http://foundation.zurb.com/) for your projects, you’ll certainly find Timber useful.
118
-
119
- The bootstrap command requires several parameters:
120
-
121
- `api_key`
122
-
123
- The same API key used in your config.yml file
124
-
125
- `password`
126
-
127
- The same password used in your config.yml file
128
-
129
- `store`
130
-
131
- The same store used in your config.yml file
132
-
133
- `theme_name`
134
-
135
- The name of the theme that will house the Timber framework files. A directory will be created with this name and all theme assets will be copied into it.
136
-
137
- **Options**
138
-
139
- `--version=[latest]`
140
-
141
- This is the only option that you can provide. You can choose any [Timber release](https://github.com/Haravan/Timber/releases) by simply specifying it (i.e. `v2.0.2`). There are two special versions you can use, `master` and `latest`.
142
-
143
- - `master` will download the latest build on the Timber master branch.
144
- - `latest` will figure out what the most recent release is and use it.
145
100
 
146
101
  ## Tips and Tricks
147
102
  ### Edit and Preview Inactive Themes
@@ -160,8 +115,6 @@ In short, you can solve this problem by downloading [this file](http://curl.haxx
160
115
 
161
116
  * [setting a the SSL_CERT_FILE environment variable on your system](http://www.computerhope.com/issues/ch000549.htm)
162
117
  * [Download a cacert.pem file for RailsInstaller](https://gist.github.com/fnichol/867550)
163
- * [Certificate failed after update](https://github.com/Haravan/haravan_theme/issues/103)
164
-
165
118
 
166
119
  ## Important Notes
167
120
  ### Prevent Resetting of Theme Settings
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  module HaravanTheme
2
- VERSION = "0.0.25"
2
+ VERSION = "0.0.26"
3
3
  end
data/lib/haravan_theme.rb CHANGED
@@ -142,6 +142,7 @@ module HaravanTheme
142
142
 
143
143
  def self.get_index
144
144
  puts(config[:theme_id] ? '' : "Hãy nhập theme_id")
145
+ puts("https://#{config[:store]}")
145
146
  haravan.get(path)
146
147
  end
147
148
 
@@ -152,9 +153,6 @@ module HaravanTheme
152
153
  headers 'Content-Type' => 'application/json'
153
154
  headers 'Authorization' => 'Basic ' + basicAuth
154
155
  base_uri "https://#{config[:store]}"
155
-
156
- puts(base_uri)
157
-
158
156
  HaravanTheme
159
157
  end
160
158
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haravan_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Duff