trebbiatrice 0.2.1 → 0.2.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: 0c128926dbf0039cdfaf62f598f4792484dac737
4
- data.tar.gz: c546bcd1575a37311641a7dbfcaec39b3d52b603
3
+ metadata.gz: 18bd11fc83273527b420d788739a9933d4eccce4
4
+ data.tar.gz: aa7e709b171d0f71c85f77639cb1cd4b4f50b346
5
5
  SHA512:
6
- metadata.gz: eb407621e08b2eca6e3bea0e6a5bc24d9deb139e1db0951ebf786f23928500cdc5b040330c309b78995f33c67381658c8c5049c36b16099fc9ab85c221df3469
7
- data.tar.gz: 60d6d9b3b15555b6a658ce47a7e15d622c37af9f0a5981aceddc3f5420f97a392cacf34f5789123d32c3fb05ec3aa5f3db9628be7851e4ba867bdbf6645d90b0
6
+ metadata.gz: 4ca260eaabcf0c8d9c35d73d149c9a0566050c8fc9354152fda3ab5f9cb0fcb547a271da0a79e67be79d248020d4a73793b7f393cd4659edfa901332b6297d61
7
+ data.tar.gz: 68dc2cb62713e46ecc8c0b1ead90c6f216f64988f3d72d385d59e7a500cc3ca11b7a8bd0097c3894b7eb28d3cd5f253528a47e365afd2b3b5b7a767f2eae200e
data/README.md CHANGED
@@ -20,12 +20,20 @@ export TREBBIA_DOMAIN='subdomain'
20
20
  export TREBBIA_MAIL='email'
21
21
  ```
22
22
 
23
- `$ trebbiatrice`
23
+ `$ trebbiatrice [trebbia]`
24
24
 
25
25
  About Sublime Text
26
26
  ------------------
27
27
  If you do not work with workspaces/projects like I said before, you can add `"show_full_path": true` to your editor's settings. In this way, `trebbiatrice` will try to match the Harvest projects with the name of the folder in which your files your're working on are saved.
28
28
 
29
+ To track with Sublime Text, just do `$ trebbiatrice sublime`.
30
+
31
+ About Atom
32
+ ----------
33
+ Install the package `custom-title` in Atom and set something like `<%= fileName %><% if (projectPath) { %> - /<%= relativeFilePath %><% } %>` in the custom title. Otherwise just work in the folder with the name of your project.
34
+
35
+ To track with Atom, the command is `$ trebbiatrice atom`.
36
+
29
37
  TODO
30
38
  ----
31
39
  - Configuration file
@@ -0,0 +1,6 @@
1
+ tell application "System Events"
2
+ tell process "Atom"
3
+ set AppleScript's text item delimiters to "\n"
4
+ return name of windows as text
5
+ end tell
6
+ end tell
data/bin/trebbiatrice CHANGED
@@ -10,6 +10,11 @@
10
10
  #++
11
11
  require 'trebbiatrice'
12
12
 
13
+ abort 'Usage: trebbiatrice [trebbia]' if ARGV.empty?
14
+
15
+ trebbia = File.join(File.dirname(__FILE__), "testate/osx/#{ARGV.last}.scpt")
16
+ abort "Trebbia #{ARGV.last} does not exist." unless File.exists?(trebbia)
17
+
13
18
  Encoding.default_external = Encoding::UTF_8
14
19
  Encoding.default_internal = Encoding::UTF_8
15
20
 
@@ -21,9 +26,6 @@ login_data = {
21
26
 
22
27
  task = 'Development'
23
28
  frequency = ENV.fetch('TREBBIA_FREQ') { 1 }.to_i
24
- testata = {
25
- :engine => 'osascript',
26
- :name => File.join(File.dirname(__FILE__), 'testate/osx/sublime.scpt')
27
- }
29
+ testata = { engine: 'osascript', name: trebbia }
28
30
 
29
31
  Trebbiatrice.run! login_data, task, testata, frequency
@@ -9,5 +9,5 @@
9
9
  #++
10
10
 
11
11
  module Trebbiatrice
12
- VERSION = '0.2.1'
12
+ VERSION = '0.2.2'
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trebbiatrice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Capuano
@@ -37,6 +37,7 @@ files:
37
37
  - Gemfile.lock
38
38
  - README.md
39
39
  - Rakefile
40
+ - bin/testate/osx/atom.scpt
40
41
  - bin/testate/osx/sublime.scpt
41
42
  - bin/trebbiatrice
42
43
  - lib/trebbiatrice.rb